Package com.biglybt.net.upnp.impl.device
Class UPnPRootDeviceImpl
java.lang.Object
com.biglybt.net.upnp.impl.device.UPnPRootDeviceImpl
- All Implemented Interfaces:
UPnPRootDevice
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean[]
static final String[]
private boolean
private String
private List
private final InetAddress
private final URL
private final NetworkInterface
private boolean
private UPnPDeviceImpl
static final String[]
private URL
private final UPnPImpl
private URL
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionUPnPRootDeviceImpl
(UPnPImpl _upnp, NetworkInterface _network_interface, InetAddress _local_address, String _usn, URL _location) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAlternativeLocation
(URL alt_location) void
protected void
void
destroy
(boolean replaced) protected String
getAbsoluteURL
(String url) getInfo()
getUPnP()
getUSN()
protected boolean
isBadVersion
(String current, String bad) boolean
void
portMappingResult
(boolean ok) void
protected void
-
Field Details
-
ROUTERS
-
BAD_ROUTER_VERSIONS
-
BAD_ROUTER_REPORT_FAIL
public static final boolean[] BAD_ROUTER_REPORT_FAIL -
upnp
-
network_interface
-
local_address
-
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:
getDiscoveryCache
in interfaceUPnPRootDevice
-
portMappingResult
public void portMappingResult(boolean ok) -
getInfo
- Specified by:
getInfo
in interfaceUPnPRootDevice
-
getAbsoluteURL
-
clearRelativeBaseURL
protected void clearRelativeBaseURL() -
restoreRelativeBaseURL
protected void restoreRelativeBaseURL() -
getUPnP
- Specified by:
getUPnP
in interfaceUPnPRootDevice
-
getNetworkInterface
- Specified by:
getNetworkInterface
in interfaceUPnPRootDevice
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceUPnPRootDevice
-
getUSN
- Specified by:
getUSN
in interfaceUPnPRootDevice
-
getLocation
- Specified by:
getLocation
in interfaceUPnPRootDevice
-
addAlternativeLocation
-
getAlternativeLocations
-
getDevice
- Specified by:
getDevice
in interfaceUPnPRootDevice
-
destroy
public void destroy(boolean replaced) -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceUPnPRootDevice
-
addListener
- Specified by:
addListener
in interfaceUPnPRootDevice
-
removeListener
- Specified by:
removeListener
in interfaceUPnPRootDevice
-
isBadVersion
-