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

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

public class UPnPDeviceImpl
extends Object
implements UPnPDevice


Constructor Summary
protected UPnPDeviceImpl(UPnPRootDeviceImpl _root_device, String indent, SimpleXMLParserDocumentNode device_node)
           
 
Method Summary
 void clearRelativeBaseURL()
           
 String getAbsoluteURL(String url)
           
 String getDeviceType()
           
 String getFriendlyName()
           
 UPnPDeviceImage[] getImages()
           
 InetAddress getLocalAddress()
           
protected  String getMandatoryField(SimpleXMLParserDocumentNode node, String name)
           
 String getManufacturer()
           
 String getManufacturerURL()
           
 String getModelDescription()
           
 String getModelName()
           
 String getModelNumber()
           
 String getModelURL()
           
protected  String getOptionalField(SimpleXMLParserDocumentNode node, String name)
           
 String getPresentation()
           
 UPnPRootDeviceImpl getRootDevice()
           
 UPnPService[] getServices()
           
 UPnPDevice[] getSubDevices()
           
 UPnPImpl getUPnP()
           
 void restoreRelativeBaseURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPnPDeviceImpl

protected UPnPDeviceImpl(UPnPRootDeviceImpl _root_device,
                         String indent,
                         SimpleXMLParserDocumentNode device_node)
Method Detail

getAbsoluteURL

public String getAbsoluteURL(String url)

getLocalAddress

public InetAddress getLocalAddress()

clearRelativeBaseURL

public void clearRelativeBaseURL()

restoreRelativeBaseURL

public void restoreRelativeBaseURL()

getUPnP

public UPnPImpl getUPnP()

getRootDevice

public UPnPRootDeviceImpl getRootDevice()
Specified by:
getRootDevice in interface UPnPDevice

getDeviceType

public String getDeviceType()
Specified by:
getDeviceType in interface UPnPDevice

getFriendlyName

public String getFriendlyName()
Specified by:
getFriendlyName in interface UPnPDevice

getManufacturer

public String getManufacturer()
Specified by:
getManufacturer in interface UPnPDevice

getManufacturerURL

public String getManufacturerURL()
Specified by:
getManufacturerURL in interface UPnPDevice

getModelDescription

public String getModelDescription()
Specified by:
getModelDescription in interface UPnPDevice

getModelName

public String getModelName()
Specified by:
getModelName in interface UPnPDevice

getModelNumber

public String getModelNumber()
Specified by:
getModelNumber in interface UPnPDevice

getModelURL

public String getModelURL()
Specified by:
getModelURL in interface UPnPDevice

getPresentation

public String getPresentation()
Specified by:
getPresentation in interface UPnPDevice

getSubDevices

public UPnPDevice[] getSubDevices()
Specified by:
getSubDevices in interface UPnPDevice

getServices

public UPnPService[] getServices()
Specified by:
getServices in interface UPnPDevice

getImages

public UPnPDeviceImage[] getImages()
Specified by:
getImages in interface UPnPDevice

getOptionalField

protected String getOptionalField(SimpleXMLParserDocumentNode node,
                                  String name)

getMandatoryField

protected String getMandatoryField(SimpleXMLParserDocumentNode node,
                                   String name)