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
InetAddresstonmapoutputDocumentMap.Injected Field Summary
Annotation(s) Field @Autowired(required=true)privateNetworkInterfacesinterfaces@Autowired(required=true)privateARPCachearp@Autowired(required=true)privateSSDPssdp@Autowired(required=true)privateThreadPoolTaskExecutorexecutor- 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 voiddestroy()Set<Integer>getPorts(InetAddress key)Set<String>getProducts(InetAddress key)voidinit()booleanisDisabled()Stringnmap(String ip)voidupdate()-
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)
-
-