org.apache.felix.upnp.basedriver.controller.impl
Class DriverControllerImpl

java.lang.Object
  extended by org.apache.felix.upnp.basedriver.controller.impl.DriverControllerImpl
All Implemented Interfaces:
DevicesInfo, DriverController

public class DriverControllerImpl
extends Object
implements DriverController, DevicesInfo


Field Summary
 
Fields inherited from interface org.apache.felix.upnp.basedriver.controller.DriverController
ALL_DEVICE, ROOT_DEVICE
 
Constructor Summary
DriverControllerImpl(MyCtrlPoint myCtrl)
           
 
Method Summary
 boolean getCyberDebug()
           
 String getLocationURL(String udn)
          Allow you to get the URL of the XML description of a device specified by UUID.
 int getLogLevel()
           
 String getSCPDURL(String udn, String serviceId)
          Allow you to get the URL of the XML description of a service specified by the ServiceId and the UUID of the device that contains the service
 String resolveRelativeUrl(String udn, String link)
          Allow you to get the absolute URL of a link that is contained in a device.
 void search(String target)
          forces the UPnP base driver to send an M-SEARCH message on the UPnP Networks, and refresh the device found by UPnP Base Driver
 void setCyberDebug(boolean b)
          Set if the message of the UPnP Stack should be reported or not
 void setLogLevel(int n)
          Set how much messages should be sent by UPnP Base Driver for debugging purpose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverControllerImpl

public DriverControllerImpl(MyCtrlPoint myCtrl)
Method Detail

setLogLevel

public void setLogLevel(int n)
Description copied from interface: DriverController
Set how much messages should be sent by UPnP Base Driver for debugging purpose

Specified by:
setLogLevel in interface DriverController
Parameters:
n - the level of log that you want to set (0-4)

getLogLevel

public int getLogLevel()
Specified by:
getLogLevel in interface DriverController
Returns:
the actual value of log level

setCyberDebug

public void setCyberDebug(boolean b)
Description copied from interface: DriverController
Set if the message of the UPnP Stack should be reported or not

Specified by:
setCyberDebug in interface DriverController
Parameters:
b - true if you want show messages from UPnP Stack false otherwise

getCyberDebug

public boolean getCyberDebug()
Specified by:
getCyberDebug in interface DriverController
Returns:
true if the reporting of UPnP Stack message is active false otherwise

getLocationURL

public String getLocationURL(String udn)
Description copied from interface: DevicesInfo
Allow you to get the URL of the XML description of a device specified by UUID.

Specified by:
getLocationURL in interface DevicesInfo
Parameters:
udn - the UUID that identify a device
Returns:
a String representing the URL pointing to the description of the Device

getSCPDURL

public String getSCPDURL(String udn,
                         String serviceId)
Description copied from interface: DevicesInfo
Allow you to get the URL of the XML description of a service specified by the ServiceId and the UUID of the device that contains the service

Specified by:
getSCPDURL in interface DevicesInfo
Parameters:
udn - the UUID of the device that contain the service
serviceId - the ServiceId of the service
Returns:
a String representing the URL pointing to the description of the Device

resolveRelativeUrl

public String resolveRelativeUrl(String udn,
                                 String link)
Description copied from interface: DevicesInfo
Allow you to get the absolute URL of a link that is contained in a device. For example the presentation page of a device might be relative to the BASE URL declared in the device description.

Specified by:
resolveRelativeUrl in interface DevicesInfo
Parameters:
udn - the UUID of the UPnP Device
link - the relative link that you want to resolve
Returns:
a String representing the absolute URL of the resource specified by the link

search

public void search(String target)
Description copied from interface: DriverController
forces the UPnP base driver to send an M-SEARCH message on the UPnP Networks, and refresh the device found by UPnP Base Driver

Specified by:
search in interface DriverController
Parameters:
target - The SSDP string used for the search


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.