com.aelitis.net.upnp.impl.device
Class UPnPRootDeviceImpl
java.lang.Object
com.aelitis.net.upnp.impl.device.UPnPRootDeviceImpl
- All Implemented Interfaces:
- UPnPRootDevice
public class UPnPRootDeviceImpl
- extends Object
- implements UPnPRootDevice
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROUTERS
public static final String[] ROUTERS
BAD_ROUTER_VERSIONS
public static final String[] BAD_ROUTER_VERSIONS
BAD_ROUTER_REPORT_FAIL
public static final boolean[] BAD_ROUTER_REPORT_FAIL
UPnPRootDeviceImpl
public UPnPRootDeviceImpl(UPnPImpl _upnp,
NetworkInterface _network_interface,
InetAddress _local_address,
String _usn,
URL _location)
throws UPnPException
- Throws:
UPnPException
getDiscoveryCache
public Map getDiscoveryCache()
- Specified by:
getDiscoveryCache
in interface UPnPRootDevice
portMappingResult
public void portMappingResult(boolean ok)
getInfo
public String getInfo()
- Specified by:
getInfo
in interface UPnPRootDevice
getAbsoluteURL
protected String getAbsoluteURL(String url)
clearRelativeBaseURL
protected void clearRelativeBaseURL()
restoreRelativeBaseURL
protected void restoreRelativeBaseURL()
getUPnP
public UPnP getUPnP()
- Specified by:
getUPnP
in interface UPnPRootDevice
getNetworkInterface
public NetworkInterface getNetworkInterface()
- Specified by:
getNetworkInterface
in interface UPnPRootDevice
getLocalAddress
public InetAddress getLocalAddress()
- Specified by:
getLocalAddress
in interface UPnPRootDevice
getUSN
public String getUSN()
- Specified by:
getUSN
in interface UPnPRootDevice
getLocation
public URL getLocation()
- Specified by:
getLocation
in interface UPnPRootDevice
addAlternativeLocation
public boolean addAlternativeLocation(URL alt_location)
getAlternativeLocations
public List<URL> getAlternativeLocations()
getDevice
public UPnPDevice getDevice()
- Specified by:
getDevice
in interface UPnPRootDevice
destroy
public void destroy(boolean replaced)
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interface UPnPRootDevice
addListener
public void addListener(UPnPRootDeviceListener l)
- Specified by:
addListener
in interface UPnPRootDevice
removeListener
public void removeListener(UPnPRootDeviceListener l)
- Specified by:
removeListener
in interface UPnPRootDevice
isBadVersion
protected boolean isBadVersion(String current,
String bad)