org.bitlet.weupnp
public class GatewayDiscover extends java.lang.Object
discover()
method.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IP
The broadcast address to use when trying to contact UPnP devices
|
static int |
PORT
The SSDP port
|
Constructor and Description |
---|
GatewayDiscover()
Constructor.
|
GatewayDiscover(java.lang.String st)
Constructor of the gateway discover service.
|
GatewayDiscover(java.lang.String[] types)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.net.InetAddress,GatewayDevice> |
discover()
Discovers Gateway Devices on the network(s) the executing machine is
connected to.
|
java.util.Map<java.net.InetAddress,GatewayDevice> |
getAllGateways()
Returns list of all discovered gateways.
|
GatewayDevice |
getValidGateway()
Gets the first connected gateway
|
public static final int PORT
public static final java.lang.String IP
public GatewayDiscover()
public GatewayDiscover(java.lang.String st)
st
- The search type you are looking forpublic GatewayDiscover(java.lang.String[] types)
types
- The search types the discover have to look forpublic java.util.Map<java.net.InetAddress,GatewayDevice> discover() throws java.net.SocketException, java.net.UnknownHostException, java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
java.net.SocketException
java.net.UnknownHostException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public GatewayDevice getValidGateway()
public java.util.Map<java.net.InetAddress,GatewayDevice> getAllGateways()
Copyright © 2014. All Rights Reserved.