Class UPnPRootDeviceImpl
java.lang.Object
com.biglybt.net.upnp.impl.device.UPnPRootDeviceImpl
- All Implemented Interfaces:
UPnPRootDevice
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<InetAddress> static final boolean[]static final String[]private booleanprivate Stringprivate Listprivate final InetAddressprivate final URLprivate final NetworkInterfaceprivate booleanprivate UPnPDeviceImplstatic final String[]private URLprivate final UPnPImplprivate URLprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionUPnPRootDeviceImpl(UPnPImpl _upnp, NetworkInterface _network_interface, InetAddress _local_address, String _usn, URL _location) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAlternativeLocation(InetAddress alt_address, URL alt_location) voidbooleancheckSameLocation(InetAddress alt_address, URL _alt_location) protected voidvoiddestroy(boolean replaced) protected StringgetAbsoluteURL(String url) getInfo()getLocalAddress(boolean ipv4) getUPnP()getUSN()protected booleanisBadVersion(String current, String bad) booleanvoidportMappingResult(boolean ok) voidprotected voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UPnPRootDevice
getLocalAddress
-
Field Details
-
ROUTERS
-
BAD_ROUTER_VERSIONS
-
BAD_ROUTER_REPORT_FAIL
public static final boolean[] BAD_ROUTER_REPORT_FAIL -
upnp
-
network_interface
-
local_address
-
alt_local_addresses
-
usn
-
location
-
alt_locations
-
url_base_for_relative_urls
-
saved_url_base_for_relative_urls
-
info
-
root_device
-
port_mapping_result_received
private boolean port_mapping_result_received -
destroyed
private boolean destroyed -
listeners
-
-
Constructor Details
-
UPnPRootDeviceImpl
public UPnPRootDeviceImpl(UPnPImpl _upnp, NetworkInterface _network_interface, InetAddress _local_address, String _usn, URL _location) throws UPnPException - Throws:
UPnPException
-
-
Method Details
-
getDiscoveryCache
- Specified by:
getDiscoveryCachein interfaceUPnPRootDevice
-
portMappingResult
public void portMappingResult(boolean ok) -
getInfo
- Specified by:
getInfoin interfaceUPnPRootDevice
-
getAbsoluteURL
-
clearRelativeBaseURL
protected void clearRelativeBaseURL() -
restoreRelativeBaseURL
protected void restoreRelativeBaseURL() -
getUPnP
- Specified by:
getUPnPin interfaceUPnPRootDevice
-
getNetworkInterface
- Specified by:
getNetworkInterfacein interfaceUPnPRootDevice
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceUPnPRootDevice
-
getUSN
- Specified by:
getUSNin interfaceUPnPRootDevice
-
getLocation
- Specified by:
getLocationin interfaceUPnPRootDevice
-
addAlternativeLocation
-
checkSameLocation
-
getAlternativeLocations
-
getDevice
- Specified by:
getDevicein interfaceUPnPRootDevice
-
destroy
public void destroy(boolean replaced) -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceUPnPRootDevice
-
addListener
- Specified by:
addListenerin interfaceUPnPRootDevice
-
removeListener
- Specified by:
removeListenerin interfaceUPnPRootDevice
-
isBadVersion
-