Package voyeur
Class Nmap
-
- All Implemented Interfaces:
XalanConstants
,XMLConstants
,Serializable
,Cloneable
,ConcurrentMap<InetAddress,Document>
,ConcurrentNavigableMap<InetAddress,Document>
,Map<InetAddress,Document>
,NavigableMap<InetAddress,Document>
,SortedMap<InetAddress,Document>
@RestController @RequestMapping(value="/network/nmap/", produces="application/xml") @Service public class Nmap extends InetAddressMap<Document> implements XalanConstants
InetAddress
tonmap
outputDocument
Map
.Injected Field Summary
Annotation(s) Field @Autowired(required=true)
private
NetworkInterfaces
interfaces
@Autowired(required=true)
private
ARPCache
arp
@Autowired(required=true)
private
SSDP
ssdp
@Autowired(required=true)
private
ThreadPoolTaskExecutor
executor
- Author:
- Allen D. Ball
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from interface ball.xml.XalanConstants
XALAN_INDENT_AMOUNT
-
Fields inherited from interface ball.xml.XMLConstants
NO, YES
-
-
Constructor Summary
Constructors Constructor Description Nmap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Set<Integer>
getPorts(InetAddress key)
Set<String>
getProducts(InetAddress key)
void
init()
boolean
isDisabled()
String
nmap(String ip)
void
update()
-
Methods inherited from class java.util.concurrent.ConcurrentSkipListMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstEntry, firstKey, floorEntry, floorKey, forEach, get, getOrDefault, headMap, headMap, higherEntry, higherKey, isEmpty, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
-
Methods inherited from class java.util.AbstractMap
hashCode, putAll, toString
-
-
-
-
Constructor Detail
-
Nmap
public Nmap()
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception
- Throws:
Exception
-
destroy
@PreDestroy public void destroy()
-
update
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) @Scheduled(fixedDelay=30000L) public void update()
-
nmap
@RequestMapping("{ip}.xml") public String nmap(@PathVariable String ip) throws Exception
- Throws:
Exception
-
isDisabled
public boolean isDisabled()
-
getPorts
public Set<Integer> getPorts(InetAddress key)
-
getProducts
public Set<String> getProducts(InetAddress key)
-
-