|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.tomp2p.upnp.Device
public class Device
This class represents an UPNP device, this device contains a set of services that will be needed to access the device functionalities.
Constructor Summary | |
---|---|
Device(Node deviceCtx,
Device parent,
URL urlBase)
|
Method Summary | |
---|---|
Device |
getChildDevice(String deviceURI)
Looks for a child UPNP device definition file, the whole devices tree will be searched, starting from the current device node. |
List<Device> |
getChildDevices()
Generates a list of all the child ( not only top level, full childrens hierarchy included ) UPNPDevice objects for this device. |
Device |
getDirectParent()
Return the parent UPNPDevice, null if the device is an UPNPRootDevice |
Service |
getService(String serviceURI)
Looks for a UPNP device service definition object for the given service URI (Type) |
Service |
getServiceByID(String serviceID)
Looks for a UPNP device service definition object for the given service ID |
List<Service> |
getServices(String serviceURI)
Looks for the all the UPNP device service definition object for the current UPNP device object. |
static URL |
getURL(String url,
URL baseURL)
Parsing an URL from the descriptionXML file |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String deviceType
public final String friendlyName
public final String manufacturer
public final URL manufacturerURL
public final URL presentationURL
public final String modelDescription
public final String modelName
public final String modelNumber
public final String modelURL
public final String serialNumber
public final String UDN
public final String USN
public final long UPC
public final Service[] services
public final Device[] childDevices
public final Device parent
Constructor Detail |
---|
public Device(Node deviceCtx, Device parent, URL urlBase)
deviceCtx
- parent
- urlBase
- Method Detail |
---|
public static final URL getURL(String url, URL baseURL) throws MalformedURLException
url
- the string representation fo the URLbaseURL
- the base device URL, needed if the url param is relative
MalformedURLException
- if the url param or baseURL.toExternalForm() + url cannot be parsed to create an
URL objectpublic List<Device> getChildDevices()
public Device getDirectParent()
public Device getChildDevice(String deviceURI)
deviceURI
- the device URI to search
public Service getService(String serviceURI)
serviceURI
- the URI of the service
public Service getServiceByID(String serviceID)
serviceID
- the ID of the service
public List<Service> getServices(String serviceURI)
serviceURI
- the URI of the service
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |