com.aelitis.net.upnp.impl.device
Class UPnPRootDeviceImpl

java.lang.Object
  extended by com.aelitis.net.upnp.impl.device.UPnPRootDeviceImpl
All Implemented Interfaces:
UPnPRootDevice

public class UPnPRootDeviceImpl
extends Object
implements UPnPRootDevice


Field Summary
static boolean[] BAD_ROUTER_REPORT_FAIL
           
static String[] BAD_ROUTER_VERSIONS
           
static String[] ROUTERS
           
 
Constructor Summary
UPnPRootDeviceImpl(UPnPImpl _upnp, NetworkInterface _network_interface, InetAddress _local_address, String _usn, URL _location)
           
 
Method Summary
 boolean addAlternativeLocation(URL alt_location)
           
 void addListener(UPnPRootDeviceListener l)
           
protected  void clearRelativeBaseURL()
           
 void destroy(boolean replaced)
           
protected  String getAbsoluteURL(String url)
           
 List<URL> getAlternativeLocations()
           
 UPnPDevice getDevice()
           
 Map getDiscoveryCache()
           
 String getInfo()
           
 InetAddress getLocalAddress()
           
 URL getLocation()
           
 NetworkInterface getNetworkInterface()
           
 UPnP getUPnP()
           
 String getUSN()
           
protected  boolean isBadVersion(String current, String bad)
           
 boolean isDestroyed()
           
 void portMappingResult(boolean ok)
           
 void removeListener(UPnPRootDeviceListener l)
           
protected  void restoreRelativeBaseURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

UPnPRootDeviceImpl

public UPnPRootDeviceImpl(UPnPImpl _upnp,
                          NetworkInterface _network_interface,
                          InetAddress _local_address,
                          String _usn,
                          URL _location)
                   throws UPnPException
Throws:
UPnPException
Method Detail

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)