Class DeviceDiscovery
java.lang.Object
io.antmedia.ipcamera.onvifdiscovery.DeviceDiscovery
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<String>
discoverWsDevices
(String probeMsgTemplate, boolean useIpv4, List<String> targetAddresses) Discover WS device on the local networkstatic Collection<URL>
discoverWsDevicesAsUrls
(boolean useIpv4) Discover WS device on the local network and returns Urlsstatic Collection<URL>
discoverWsDevicesAsUrls
(String regexpProtocol, String regexpPath, boolean useIpv4) Discover WS device on the local network with specified filterstatic Collection<URL>
discoverWsDevicesAsUrls
(String regexpProtocol, String regexpPath, boolean useIpv4, List<String> targetAddresses) static int
tryAddress
(String probeMsgTemplate, Collection<String> addresses, CountDownLatch serverStarted, CountDownLatch serverFinished, ExecutorService executorService, int port, InetAddress address)
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
WS_DISCOVERY_SOAP_VERSION
- See Also:
-
WS_DISCOVERY_CONTENT_TYPE
- See Also:
-
WS_DISCOVERY_TIMEOUT
public static final int WS_DISCOVERY_TIMEOUT- See Also:
-
WS_DISCOVERY_PORT
public static final int WS_DISCOVERY_PORT- See Also:
-
-
Constructor Details
-
DeviceDiscovery
private DeviceDiscovery()
-
-
Method Details
-
discoverWsDevicesAsUrls
Discover WS device on the local network and returns Urls- Returns:
- list of unique device urls
-
discoverWsDevicesAsUrls
-
discoverWsDevicesAsUrls
public static Collection<URL> discoverWsDevicesAsUrls(String regexpProtocol, String regexpPath, boolean useIpv4) Discover WS device on the local network with specified filter- Parameters:
regexpProtocol
- url protocol matching regexp like "^http$", might be empty ""regexpPath
- url path matching regexp like "onvif", might be empty ""- Returns:
- list of unique device urls filtered
-
discoverWsDevices
public static Collection<String> discoverWsDevices(String probeMsgTemplate, boolean useIpv4, List<String> targetAddresses) Discover WS device on the local network- Parameters:
useIpv4
-targetAddresses
-- Returns:
- list of unique devices access strings which might be URLs in most cases
-
tryAddress
public static int tryAddress(String probeMsgTemplate, Collection<String> addresses, CountDownLatch serverStarted, CountDownLatch serverFinished, ExecutorService executorService, int port, InetAddress address)
-