cybergarage-upnp
org.cybergarage.upnp.Device Class Reference
Inheritance diagram for org.cybergarage.upnp.Device:
org.cybergarage.http.HTTPRequestListener org.cybergarage.upnp.device.SearchListener org.cybergarage.upnp.std.av.renderer.MediaRenderer org.cybergarage.upnp.std.av.server.MediaServer

Public Member Functions

Node getRootNode ()
 
Node getDeviceNode ()
 
void setRootNode (Node node)
 
void setDeviceNode (Node node)
 
 Device (Node root, Node device)
 
 Device ()
 
 Device (Node device)
 
 Device (File descriptionFile) throws InvalidDescriptionException
 
 Device (InputStream input) throws InvalidDescriptionException
 
 Device (String descriptionFileName) throws InvalidDescriptionException
 
void lock ()
 
void unlock ()
 
String getAbsoluteURL (String urlString, String baseURLStr, String locationURLStr)
 
String getAbsoluteURL (String urlString)
 
void setNMPRMode (boolean flag)
 
boolean isNMPRMode ()
 
void setWirelessMode (boolean flag)
 
boolean isWirelessMode ()
 
int getSSDPAnnounceCount ()
 
String getUUID ()
 
int getBootId ()
 
void updateConfigId ()
 
int getConfigId ()
 
Device getRootDevice ()
 
Device getParentDevice ()
 
void addService (Service s)
 
void addDevice (Device d)
 
File getDescriptionFile ()
 
String getDescriptionFilePath ()
 
boolean loadDescription (InputStream input) throws InvalidDescriptionException
 
boolean loadDescription (String descString) throws InvalidDescriptionException
 
boolean loadDescription (File file) throws InvalidDescriptionException
 
boolean isRootDevice ()
 
void setSSDPPacket (SSDPPacket packet)
 
SSDPPacket getSSDPPacket ()
 
void setLocation (String value)
 
String getLocation ()
 
void setLeaseTime (int value)
 
int getLeaseTime ()
 
long getTimeStamp ()
 
long getElapsedTime ()
 
boolean isExpired ()
 
String getURLBase ()
 
void setDeviceType (String value)
 
String getDeviceType ()
 
boolean isDeviceType (String value)
 
void setFriendlyName (String value)
 
String getFriendlyName ()
 
void setManufacture (String value)
 
String getManufacture ()
 
void setManufactureURL (String value)
 
String getManufactureURL ()
 
void setModelDescription (String value)
 
String getModelDescription ()
 
void setModelName (String value)
 
String getModelName ()
 
void setModelNumber (String value)
 
String getModelNumber ()
 
void setModelURL (String value)
 
String getModelURL ()
 
void setSerialNumber (String value)
 
String getSerialNumber ()
 
void setUDN (String value)
 
String getUDN ()
 
boolean hasUDN ()
 
void setUPC (String value)
 
String getUPC ()
 
void setPresentationURL (String value)
 
String getPresentationURL ()
 
boolean removePresentationURL ()
 
void setPresentationListener (PresentationListener listener)
 
boolean hasPresentationListener ()
 
PresentationListener getPresentationListener ()
 
DeviceList getDeviceList ()
 
boolean isDevice (String name)
 
Device getDevice (String name)
 
Device getDeviceByDescriptionURI (String uri)
 
ServiceList getServiceList ()
 
Service getService (String name)
 
Service getServiceBySCPDURL (String searchUrl)
 
Service getServiceByControlURL (String searchUrl)
 
Service getServiceByEventSubURL (String searchUrl)
 
Service getSubscriberService (String uuid)
 
StateVariable getStateVariable (String serviceType, String name)
 
StateVariable getStateVariable (String name)
 
Action getAction (String name)
 
boolean isIconBytesURI (String uri)
 
Icon getIconByURI (String uri)
 
boolean addIcon (Icon icon)
 
IconList getIconList ()
 
Icon getIcon (int n)
 
Icon getSmallestIcon ()
 
String getLocationURL (String host)
 
void announce (String bindAddr)
 
void announce ()
 
void byebye (String bindAddr)
 
void byebye ()
 
boolean postSearchResponse (SSDPPacket ssdpPacket, String st, String usn)
 
void deviceSearchResponse (SSDPPacket ssdpPacket)
 
void deviceSearchReceived (SSDPPacket ssdpPacket)
 
void setHTTPPort (int port)
 
int getHTTPPort ()
 
void setHTTPBindAddress (InetAddress[] inets)
 
InetAddress[] getHTTPBindAddress ()
 
String getSSDPIPv4MulticastAddress ()
 
void getSSDPIPv4MulticastAddress (String ip)
 
String getSSDPIPv6MulticastAddress ()
 
void getSSDPIPv6MulticastAddress (String ip)
 
void httpRequestRecieved (HTTPRequest httpReq)
 
void setSSDPPort (int port)
 
int getSSDPPort ()
 
void setSSDPBindAddress (InetAddress[] inets)
 
InetAddress[] getSSDPBindAddress ()
 
void setMulticastIPv4Address (String ip)
 
String getMulticastIPv4Address ()
 
void setMulticastIPv6Address (String ip)
 
String getMulticastIPv6Address ()
 
boolean start ()
 
boolean stop ()
 
boolean isRunning ()
 
String getInterfaceAddress ()
 
void setActionListener (ActionListener listener)
 
void setQueryListener (QueryListener listener)
 
void setActionListener (ActionListener listener, boolean includeSubDevices)
 
void setQueryListener (QueryListener listener, boolean includeSubDevices)
 
void setUserData (Object data)
 
Object getUserData ()
 

Static Public Member Functions

static boolean isDeviceNode (Node node)
 
static final void notifyWait ()
 

Static Public Attributes

static final String ELEM_NAME = "device"
 
static final String UPNP_ROOTDEVICE = "upnp:rootdevice"
 
static final int DEFAULT_STARTUP_WAIT_TIME = 1000
 
static final int DEFAULT_DISCOVERY_WAIT_TIME = 300
 
static final int DEFAULT_LEASE_TIME = 30 * 60
 
static final int HTTP_DEFAULT_PORT = 4004
 
static final String DEFAULT_DESCRIPTION_URI = "/description.xml"
 
static final String DEFAULT_PRESENTATION_URI = "/presentation"
 

Private Member Functions

void setUUID (String uuid)
 
void updateUDN ()
 
void updateBootId ()
 
void updateConfigId (Device dev)
 
DeviceData getDeviceData ()
 
void setDescriptionFile (File file)
 
void setDescriptionURI (String uri)
 
String getDescriptionURI ()
 
boolean isDescriptionURI (String uri)
 
boolean initializeLoadedDescription ()
 
void setURLBase (String value)
 
void updateURLBase (String host)
 
boolean isPresentationRequest (HTTPRequest httpReq)
 
String getNotifyDeviceNT ()
 
String getNotifyDeviceUSN ()
 
String getNotifyDeviceTypeNT ()
 
String getNotifyDeviceTypeUSN ()
 
synchronized byte[] getDescriptionData (String host)
 
void httpGetRequestRecieved (HTTPRequest httpReq)
 
void httpPostRequestRecieved (HTTPRequest httpReq)
 
void soapBadActionRecieved (HTTPRequest soapReq)
 
void soapActionRecieved (HTTPRequest soapReq)
 
void deviceControlRequestRecieved (ControlRequest ctlReq, Service service)
 
void invalidActionControlRecieved (ControlRequest ctlReq)
 
void invalidArgumentsControlRecieved (ControlRequest ctlReq)
 
void deviceActionControlRecieved (ActionRequest ctlReq, Service service)
 
void deviceQueryControlRecieved (QueryRequest ctlReq, Service service)
 
void upnpBadSubscriptionRecieved (SubscriptionRequest subReq, int code)
 
void deviceEventSubscriptionRecieved (SubscriptionRequest subReq)
 
void deviceEventNewSubscriptionRecieved (Service service, SubscriptionRequest subReq)
 
void deviceEventRenewSubscriptionRecieved (Service service, SubscriptionRequest subReq)
 
void deviceEventUnsubscriptionRecieved (Service service, SubscriptionRequest subReq)
 
HTTPServerList getHTTPServerList ()
 
SSDPSearchSocketList getSSDPSearchSocketList ()
 
void setAdvertiser (Advertiser adv)
 
Advertiser getAdvertiser ()
 
boolean stop (boolean doByeBye)
 

Private Attributes

Node rootNode
 
Node deviceNode
 
Mutex mutex = new Mutex()
 
boolean wirelessMode
 
String devUUID
 
int bootId
 
PresentationListener presentationListener
 
HashMap< String, byte[]> iconBytesMap = new HashMap<String, byte[]>()
 
Object userData = null
 

Static Private Attributes

static final String CONFIG_ID = "configId"
 
static final String URLBASE_NAME = "URLBase"
 
static final String DEVICE_TYPE = "deviceType"
 
static final String FRIENDLY_NAME = "friendlyName"
 
static final String MANUFACTURE = "manufacturer"
 
static final String MANUFACTURE_URL = "manufacturerURL"
 
static final String MODEL_DESCRIPTION = "modelDescription"
 
static final String MODEL_NAME = "modelName"
 
static final String MODEL_NUMBER = "modelNumber"
 
static final String MODEL_URL = "modelURL"
 
static final String SERIAL_NUMBER = "serialNumber"
 
static final String UDN = "UDN"
 
static final String UPC = "UPC"
 
static final String presentationURL = "presentationURL"
 
static Calendar cal = Calendar.getInstance()
 

Constructor & Destructor Documentation

◆ Device() [1/6]

org.cybergarage.upnp.Device.Device ( Node root,
Node device )
inline

◆ Device() [2/6]

org.cybergarage.upnp.Device.Device ( )
inline

◆ Device() [3/6]

org.cybergarage.upnp.Device.Device ( Node device)
inline

◆ Device() [4/6]

org.cybergarage.upnp.Device.Device ( File descriptionFile) throws InvalidDescriptionException
inline

◆ Device() [5/6]

org.cybergarage.upnp.Device.Device ( InputStream input) throws InvalidDescriptionException
inline
Since
1.8.0

◆ Device() [6/6]

org.cybergarage.upnp.Device.Device ( String descriptionFileName) throws InvalidDescriptionException
inline

Member Function Documentation

◆ addDevice()

void org.cybergarage.upnp.Device.addDevice ( Device d)
inline

Add a Device to device without checking for duplicate or syntax error. This method set or reset the root node of the Device and itself

Note: This method should be used to create a dynamic
Device withtout writing any XML that describe the device

Parameters
dAdd Device d to the Device
Author
Stefano "Kismet" Lenzi - kisme.nosp@m.t-sl.nosp@m.@user.nosp@m.s.so.nosp@m.urcef.nosp@m.orge.nosp@m..net - 2005

◆ addIcon()

boolean org.cybergarage.upnp.Device.addIcon ( Icon icon)
inline

◆ addService()

void org.cybergarage.upnp.Device.addService ( Service s)
inline

Add a Service to device without checking for duplicate or syntax error

Parameters
sAdd Service s to the Device

◆ announce() [1/2]

void org.cybergarage.upnp.Device.announce ( )
inline

◆ announce() [2/2]

void org.cybergarage.upnp.Device.announce ( String bindAddr)
inline

◆ byebye() [1/2]

void org.cybergarage.upnp.Device.byebye ( )
inline

◆ byebye() [2/2]

void org.cybergarage.upnp.Device.byebye ( String bindAddr)
inline

◆ deviceActionControlRecieved()

void org.cybergarage.upnp.Device.deviceActionControlRecieved ( ActionRequest ctlReq,
Service service )
inlineprivate

◆ deviceControlRequestRecieved()

void org.cybergarage.upnp.Device.deviceControlRequestRecieved ( ControlRequest ctlReq,
Service service )
inlineprivate

◆ deviceEventNewSubscriptionRecieved()

void org.cybergarage.upnp.Device.deviceEventNewSubscriptionRecieved ( Service service,
SubscriptionRequest subReq )
inlineprivate

◆ deviceEventRenewSubscriptionRecieved()

void org.cybergarage.upnp.Device.deviceEventRenewSubscriptionRecieved ( Service service,
SubscriptionRequest subReq )
inlineprivate

◆ deviceEventSubscriptionRecieved()

void org.cybergarage.upnp.Device.deviceEventSubscriptionRecieved ( SubscriptionRequest subReq)
inlineprivate

◆ deviceEventUnsubscriptionRecieved()

void org.cybergarage.upnp.Device.deviceEventUnsubscriptionRecieved ( Service service,
SubscriptionRequest subReq )
inlineprivate

◆ deviceQueryControlRecieved()

void org.cybergarage.upnp.Device.deviceQueryControlRecieved ( QueryRequest ctlReq,
Service service )
inlineprivate

◆ deviceSearchReceived()

void org.cybergarage.upnp.Device.deviceSearchReceived ( SSDPPacket ssdpPacket)
inline

◆ deviceSearchResponse()

void org.cybergarage.upnp.Device.deviceSearchResponse ( SSDPPacket ssdpPacket)
inline

◆ getAbsoluteURL() [1/2]

String org.cybergarage.upnp.Device.getAbsoluteURL ( String urlString)
inline

◆ getAbsoluteURL() [2/2]

String org.cybergarage.upnp.Device.getAbsoluteURL ( String urlString,
String baseURLStr,
String locationURLStr )
inline

◆ getAction()

Action org.cybergarage.upnp.Device.getAction ( String name)
inline

◆ getAdvertiser()

Advertiser org.cybergarage.upnp.Device.getAdvertiser ( )
inlineprivate

◆ getBootId()

int org.cybergarage.upnp.Device.getBootId ( )
inline

◆ getConfigId()

int org.cybergarage.upnp.Device.getConfigId ( )
inline

◆ getDescriptionData()

synchronized byte[] org.cybergarage.upnp.Device.getDescriptionData ( String host)
inlineprivate

◆ getDescriptionFile()

File org.cybergarage.upnp.Device.getDescriptionFile ( )
inline

◆ getDescriptionFilePath()

String org.cybergarage.upnp.Device.getDescriptionFilePath ( )
inline

◆ getDescriptionURI()

String org.cybergarage.upnp.Device.getDescriptionURI ( )
inlineprivate

◆ getDevice()

Device org.cybergarage.upnp.Device.getDevice ( String name)
inline

◆ getDeviceByDescriptionURI()

Device org.cybergarage.upnp.Device.getDeviceByDescriptionURI ( String uri)
inline

◆ getDeviceData()

DeviceData org.cybergarage.upnp.Device.getDeviceData ( )
inlineprivate

◆ getDeviceList()

DeviceList org.cybergarage.upnp.Device.getDeviceList ( )
inline

◆ getDeviceNode()

Node org.cybergarage.upnp.Device.getDeviceNode ( )
inline

◆ getDeviceType()

String org.cybergarage.upnp.Device.getDeviceType ( )
inline

◆ getElapsedTime()

long org.cybergarage.upnp.Device.getElapsedTime ( )
inline

◆ getFriendlyName()

String org.cybergarage.upnp.Device.getFriendlyName ( )
inline

◆ getHTTPBindAddress()

InetAddress[] org.cybergarage.upnp.Device.getHTTPBindAddress ( )
inline

◆ getHTTPPort()

int org.cybergarage.upnp.Device.getHTTPPort ( )
inline

◆ getHTTPServerList()

HTTPServerList org.cybergarage.upnp.Device.getHTTPServerList ( )
inlineprivate

◆ getIcon()

Icon org.cybergarage.upnp.Device.getIcon ( int n)
inline

◆ getIconByURI()

Icon org.cybergarage.upnp.Device.getIconByURI ( String uri)
inline

◆ getIconList()

IconList org.cybergarage.upnp.Device.getIconList ( )
inline

◆ getInterfaceAddress()

String org.cybergarage.upnp.Device.getInterfaceAddress ( )
inline

◆ getLeaseTime()

int org.cybergarage.upnp.Device.getLeaseTime ( )
inline

◆ getLocation()

String org.cybergarage.upnp.Device.getLocation ( )
inline

◆ getLocationURL()

String org.cybergarage.upnp.Device.getLocationURL ( String host)
inline

◆ getManufacture()

String org.cybergarage.upnp.Device.getManufacture ( )
inline

◆ getManufactureURL()

String org.cybergarage.upnp.Device.getManufactureURL ( )
inline

◆ getModelDescription()

String org.cybergarage.upnp.Device.getModelDescription ( )
inline

◆ getModelName()

String org.cybergarage.upnp.Device.getModelName ( )
inline

◆ getModelNumber()

String org.cybergarage.upnp.Device.getModelNumber ( )
inline

◆ getModelURL()

String org.cybergarage.upnp.Device.getModelURL ( )
inline

◆ getMulticastIPv4Address()

String org.cybergarage.upnp.Device.getMulticastIPv4Address ( )
inline
Returns
The IPv4 address used for Multicast comunication

◆ getMulticastIPv6Address()

String org.cybergarage.upnp.Device.getMulticastIPv6Address ( )
inline
Returns
The IPv address used for Multicast comunication

◆ getNotifyDeviceNT()

String org.cybergarage.upnp.Device.getNotifyDeviceNT ( )
inlineprivate

◆ getNotifyDeviceTypeNT()

String org.cybergarage.upnp.Device.getNotifyDeviceTypeNT ( )
inlineprivate

◆ getNotifyDeviceTypeUSN()

String org.cybergarage.upnp.Device.getNotifyDeviceTypeUSN ( )
inlineprivate

◆ getNotifyDeviceUSN()

String org.cybergarage.upnp.Device.getNotifyDeviceUSN ( )
inlineprivate

◆ getParentDevice()

Device org.cybergarage.upnp.Device.getParentDevice ( )
inline
Returns
A Device that contain this object.
Return null if this is a root device.
Author
Stefano "Kismet" Lenzi

◆ getPresentationListener()

PresentationListener org.cybergarage.upnp.Device.getPresentationListener ( )
inline

◆ getPresentationURL()

String org.cybergarage.upnp.Device.getPresentationURL ( )
inline

◆ getRootDevice()

Device org.cybergarage.upnp.Device.getRootDevice ( )
inline

◆ getRootNode()

Node org.cybergarage.upnp.Device.getRootNode ( )
inline

◆ getSerialNumber()

String org.cybergarage.upnp.Device.getSerialNumber ( )
inline

◆ getService()

Service org.cybergarage.upnp.Device.getService ( String name)
inline

◆ getServiceByControlURL()

Service org.cybergarage.upnp.Device.getServiceByControlURL ( String searchUrl)
inline

◆ getServiceByEventSubURL()

Service org.cybergarage.upnp.Device.getServiceByEventSubURL ( String searchUrl)
inline

◆ getServiceBySCPDURL()

Service org.cybergarage.upnp.Device.getServiceBySCPDURL ( String searchUrl)
inline

◆ getServiceList()

ServiceList org.cybergarage.upnp.Device.getServiceList ( )
inline

◆ getSmallestIcon()

Icon org.cybergarage.upnp.Device.getSmallestIcon ( )
inline

◆ getSSDPAnnounceCount()

int org.cybergarage.upnp.Device.getSSDPAnnounceCount ( )
inline

◆ getSSDPBindAddress()

InetAddress[] org.cybergarage.upnp.Device.getSSDPBindAddress ( )
inline
Returns
inets The IP that will be used for binding the SSDP service. null means the default setted by the class UPnP

◆ getSSDPIPv4MulticastAddress() [1/2]

String org.cybergarage.upnp.Device.getSSDPIPv4MulticastAddress ( )
inline
Returns
Since
1.8

◆ getSSDPIPv4MulticastAddress() [2/2]

void org.cybergarage.upnp.Device.getSSDPIPv4MulticastAddress ( String ip)
inline
Parameters
ip
Since
1.8

◆ getSSDPIPv6MulticastAddress() [1/2]

String org.cybergarage.upnp.Device.getSSDPIPv6MulticastAddress ( )
inline
Returns
Since
1.8

◆ getSSDPIPv6MulticastAddress() [2/2]

void org.cybergarage.upnp.Device.getSSDPIPv6MulticastAddress ( String ip)
inline
Parameters
ip
Since
1.8

◆ getSSDPPacket()

SSDPPacket org.cybergarage.upnp.Device.getSSDPPacket ( )
inline

◆ getSSDPPort()

int org.cybergarage.upnp.Device.getSSDPPort ( )
inline
Returns
The port to use for binding the SSDP service

◆ getSSDPSearchSocketList()

SSDPSearchSocketList org.cybergarage.upnp.Device.getSSDPSearchSocketList ( )
inlineprivate

◆ getStateVariable() [1/2]

StateVariable org.cybergarage.upnp.Device.getStateVariable ( String name)
inline

◆ getStateVariable() [2/2]

StateVariable org.cybergarage.upnp.Device.getStateVariable ( String serviceType,
String name )
inline

◆ getSubscriberService()

Service org.cybergarage.upnp.Device.getSubscriberService ( String uuid)
inline

◆ getTimeStamp()

long org.cybergarage.upnp.Device.getTimeStamp ( )
inline

◆ getUDN()

String org.cybergarage.upnp.Device.getUDN ( )
inline

◆ getUPC()

String org.cybergarage.upnp.Device.getUPC ( )
inline

◆ getURLBase()

String org.cybergarage.upnp.Device.getURLBase ( )
inline

◆ getUserData()

Object org.cybergarage.upnp.Device.getUserData ( )
inline

◆ getUUID()

String org.cybergarage.upnp.Device.getUUID ( )
inline

◆ hasPresentationListener()

boolean org.cybergarage.upnp.Device.hasPresentationListener ( )
inline

◆ hasUDN()

boolean org.cybergarage.upnp.Device.hasUDN ( )
inline

◆ httpGetRequestRecieved()

void org.cybergarage.upnp.Device.httpGetRequestRecieved ( HTTPRequest httpReq)
inlineprivate

◆ httpPostRequestRecieved()

void org.cybergarage.upnp.Device.httpPostRequestRecieved ( HTTPRequest httpReq)
inlineprivate

◆ httpRequestRecieved()

void org.cybergarage.upnp.Device.httpRequestRecieved ( HTTPRequest httpReq)
inline

◆ initializeLoadedDescription()

boolean org.cybergarage.upnp.Device.initializeLoadedDescription ( )
inlineprivate

◆ invalidActionControlRecieved()

void org.cybergarage.upnp.Device.invalidActionControlRecieved ( ControlRequest ctlReq)
inlineprivate

◆ invalidArgumentsControlRecieved()

void org.cybergarage.upnp.Device.invalidArgumentsControlRecieved ( ControlRequest ctlReq)
inlineprivate

◆ isDescriptionURI()

boolean org.cybergarage.upnp.Device.isDescriptionURI ( String uri)
inlineprivate

◆ isDevice()

boolean org.cybergarage.upnp.Device.isDevice ( String name)
inline

◆ isDeviceNode()

static boolean org.cybergarage.upnp.Device.isDeviceNode ( Node node)
inlinestatic

◆ isDeviceType()

boolean org.cybergarage.upnp.Device.isDeviceType ( String value)
inline

◆ isExpired()

boolean org.cybergarage.upnp.Device.isExpired ( )
inline

◆ isIconBytesURI()

boolean org.cybergarage.upnp.Device.isIconBytesURI ( String uri)
inline

◆ isNMPRMode()

boolean org.cybergarage.upnp.Device.isNMPRMode ( )
inline

◆ isPresentationRequest()

boolean org.cybergarage.upnp.Device.isPresentationRequest ( HTTPRequest httpReq)
inlineprivate

◆ isRootDevice()

boolean org.cybergarage.upnp.Device.isRootDevice ( )
inline

◆ isRunning()

boolean org.cybergarage.upnp.Device.isRunning ( )
inline

◆ isWirelessMode()

boolean org.cybergarage.upnp.Device.isWirelessMode ( )
inline

◆ loadDescription() [1/3]

boolean org.cybergarage.upnp.Device.loadDescription ( File file) throws InvalidDescriptionException
inline

◆ loadDescription() [2/3]

boolean org.cybergarage.upnp.Device.loadDescription ( InputStream input) throws InvalidDescriptionException
inline
Since
1.8.0

◆ loadDescription() [3/3]

boolean org.cybergarage.upnp.Device.loadDescription ( String descString) throws InvalidDescriptionException
inline

◆ lock()

void org.cybergarage.upnp.Device.lock ( )
inline

◆ notifyWait()

static final void org.cybergarage.upnp.Device.notifyWait ( )
inlinestatic

◆ postSearchResponse()

boolean org.cybergarage.upnp.Device.postSearchResponse ( SSDPPacket ssdpPacket,
String st,
String usn )
inline

◆ removePresentationURL()

boolean org.cybergarage.upnp.Device.removePresentationURL ( )
inline

◆ setActionListener() [1/2]

void org.cybergarage.upnp.Device.setActionListener ( ActionListener listener)
inline

◆ setActionListener() [2/2]

void org.cybergarage.upnp.Device.setActionListener ( ActionListener listener,
boolean includeSubDevices )
inline

◆ setAdvertiser()

void org.cybergarage.upnp.Device.setAdvertiser ( Advertiser adv)
inlineprivate

◆ setDescriptionFile()

void org.cybergarage.upnp.Device.setDescriptionFile ( File file)
inlineprivate

◆ setDescriptionURI()

void org.cybergarage.upnp.Device.setDescriptionURI ( String uri)
inlineprivate

◆ setDeviceNode()

void org.cybergarage.upnp.Device.setDeviceNode ( Node node)
inline

◆ setDeviceType()

void org.cybergarage.upnp.Device.setDeviceType ( String value)
inline

◆ setFriendlyName()

void org.cybergarage.upnp.Device.setFriendlyName ( String value)
inline

◆ setHTTPBindAddress()

void org.cybergarage.upnp.Device.setHTTPBindAddress ( InetAddress[] inets)
inline

◆ setHTTPPort()

void org.cybergarage.upnp.Device.setHTTPPort ( int port)
inline

◆ setLeaseTime()

void org.cybergarage.upnp.Device.setLeaseTime ( int value)
inline

◆ setLocation()

void org.cybergarage.upnp.Device.setLocation ( String value)
inline

◆ setManufacture()

void org.cybergarage.upnp.Device.setManufacture ( String value)
inline

◆ setManufactureURL()

void org.cybergarage.upnp.Device.setManufactureURL ( String value)
inline

◆ setModelDescription()

void org.cybergarage.upnp.Device.setModelDescription ( String value)
inline

◆ setModelName()

void org.cybergarage.upnp.Device.setModelName ( String value)
inline

◆ setModelNumber()

void org.cybergarage.upnp.Device.setModelNumber ( String value)
inline

◆ setModelURL()

void org.cybergarage.upnp.Device.setModelURL ( String value)
inline

◆ setMulticastIPv4Address()

void org.cybergarage.upnp.Device.setMulticastIPv4Address ( String ip)
inline
Parameters
ipThe IPv4 address used for Multicast comunication

◆ setMulticastIPv6Address()

void org.cybergarage.upnp.Device.setMulticastIPv6Address ( String ip)
inline
Parameters
ipThe IPv address used for Multicast comunication

◆ setNMPRMode()

void org.cybergarage.upnp.Device.setNMPRMode ( boolean flag)
inline

◆ setPresentationListener()

void org.cybergarage.upnp.Device.setPresentationListener ( PresentationListener listener)
inline

◆ setPresentationURL()

void org.cybergarage.upnp.Device.setPresentationURL ( String value)
inline

◆ setQueryListener() [1/2]

void org.cybergarage.upnp.Device.setQueryListener ( QueryListener listener)
inline

◆ setQueryListener() [2/2]

void org.cybergarage.upnp.Device.setQueryListener ( QueryListener listener,
boolean includeSubDevices )
inline

◆ setRootNode()

void org.cybergarage.upnp.Device.setRootNode ( Node node)
inline

◆ setSerialNumber()

void org.cybergarage.upnp.Device.setSerialNumber ( String value)
inline

◆ setSSDPBindAddress()

void org.cybergarage.upnp.Device.setSSDPBindAddress ( InetAddress[] inets)
inline
Parameters
inetsThe IP that will be used for binding the SSDP service. Use null to get the default beahvior

◆ setSSDPPacket()

void org.cybergarage.upnp.Device.setSSDPPacket ( SSDPPacket packet)
inline

◆ setSSDPPort()

void org.cybergarage.upnp.Device.setSSDPPort ( int port)
inline
Parameters
portThe port to use for binding the SSDP service

◆ setUDN()

void org.cybergarage.upnp.Device.setUDN ( String value)
inline

◆ setUPC()

void org.cybergarage.upnp.Device.setUPC ( String value)
inline

◆ setURLBase()

void org.cybergarage.upnp.Device.setURLBase ( String value)
inlineprivate

◆ setUserData()

void org.cybergarage.upnp.Device.setUserData ( Object data)
inline

◆ setUUID()

void org.cybergarage.upnp.Device.setUUID ( String uuid)
inlineprivate

◆ setWirelessMode()

void org.cybergarage.upnp.Device.setWirelessMode ( boolean flag)
inline

◆ soapActionRecieved()

void org.cybergarage.upnp.Device.soapActionRecieved ( HTTPRequest soapReq)
inlineprivate

◆ soapBadActionRecieved()

void org.cybergarage.upnp.Device.soapBadActionRecieved ( HTTPRequest soapReq)
inlineprivate

◆ start()

boolean org.cybergarage.upnp.Device.start ( )
inline

◆ stop() [1/2]

boolean org.cybergarage.upnp.Device.stop ( )
inline

◆ stop() [2/2]

boolean org.cybergarage.upnp.Device.stop ( boolean doByeBye)
inlineprivate

◆ unlock()

void org.cybergarage.upnp.Device.unlock ( )
inline

◆ updateBootId()

void org.cybergarage.upnp.Device.updateBootId ( )
inlineprivate

◆ updateConfigId() [1/2]

void org.cybergarage.upnp.Device.updateConfigId ( )
inline

◆ updateConfigId() [2/2]

void org.cybergarage.upnp.Device.updateConfigId ( Device dev)
inlineprivate

◆ updateUDN()

void org.cybergarage.upnp.Device.updateUDN ( )
inlineprivate

◆ updateURLBase()

void org.cybergarage.upnp.Device.updateURLBase ( String host)
inlineprivate

◆ upnpBadSubscriptionRecieved()

void org.cybergarage.upnp.Device.upnpBadSubscriptionRecieved ( SubscriptionRequest subReq,
int code )
inlineprivate

Field Documentation

◆ bootId

int org.cybergarage.upnp.Device.bootId
private

◆ cal

Calendar org.cybergarage.upnp.Device.cal = Calendar.getInstance()
staticprivate

◆ CONFIG_ID

final String org.cybergarage.upnp.Device.CONFIG_ID = "configId"
staticprivate

◆ DEFAULT_DESCRIPTION_URI

final String org.cybergarage.upnp.Device.DEFAULT_DESCRIPTION_URI = "/description.xml"
static

◆ DEFAULT_DISCOVERY_WAIT_TIME

final int org.cybergarage.upnp.Device.DEFAULT_DISCOVERY_WAIT_TIME = 300
static

◆ DEFAULT_LEASE_TIME

final int org.cybergarage.upnp.Device.DEFAULT_LEASE_TIME = 30 * 60
static

◆ DEFAULT_PRESENTATION_URI

final String org.cybergarage.upnp.Device.DEFAULT_PRESENTATION_URI = "/presentation"
static

◆ DEFAULT_STARTUP_WAIT_TIME

final int org.cybergarage.upnp.Device.DEFAULT_STARTUP_WAIT_TIME = 1000
static

◆ DEVICE_TYPE

final String org.cybergarage.upnp.Device.DEVICE_TYPE = "deviceType"
staticprivate

◆ deviceNode

Node org.cybergarage.upnp.Device.deviceNode
private

◆ devUUID

String org.cybergarage.upnp.Device.devUUID
private

◆ ELEM_NAME

final String org.cybergarage.upnp.Device.ELEM_NAME = "device"
static

◆ FRIENDLY_NAME

final String org.cybergarage.upnp.Device.FRIENDLY_NAME = "friendlyName"
staticprivate

◆ HTTP_DEFAULT_PORT

final int org.cybergarage.upnp.Device.HTTP_DEFAULT_PORT = 4004
static

◆ iconBytesMap

HashMap<String, byte[]> org.cybergarage.upnp.Device.iconBytesMap = new HashMap<String, byte[]>()
private

◆ MANUFACTURE

final String org.cybergarage.upnp.Device.MANUFACTURE = "manufacturer"
staticprivate

◆ MANUFACTURE_URL

final String org.cybergarage.upnp.Device.MANUFACTURE_URL = "manufacturerURL"
staticprivate

◆ MODEL_DESCRIPTION

final String org.cybergarage.upnp.Device.MODEL_DESCRIPTION = "modelDescription"
staticprivate

◆ MODEL_NAME

final String org.cybergarage.upnp.Device.MODEL_NAME = "modelName"
staticprivate

◆ MODEL_NUMBER

final String org.cybergarage.upnp.Device.MODEL_NUMBER = "modelNumber"
staticprivate

◆ MODEL_URL

final String org.cybergarage.upnp.Device.MODEL_URL = "modelURL"
staticprivate

◆ mutex

Mutex org.cybergarage.upnp.Device.mutex = new Mutex()
private

◆ presentationListener

PresentationListener org.cybergarage.upnp.Device.presentationListener
private

◆ presentationURL

final String org.cybergarage.upnp.Device.presentationURL = "presentationURL"
staticprivate

◆ rootNode

Node org.cybergarage.upnp.Device.rootNode
private

◆ SERIAL_NUMBER

final String org.cybergarage.upnp.Device.SERIAL_NUMBER = "serialNumber"
staticprivate

◆ UDN

final String org.cybergarage.upnp.Device.UDN = "UDN"
staticprivate

◆ UPC

final String org.cybergarage.upnp.Device.UPC = "UPC"
staticprivate

◆ UPNP_ROOTDEVICE

final String org.cybergarage.upnp.Device.UPNP_ROOTDEVICE = "upnp:rootdevice"
static

◆ URLBASE_NAME

final String org.cybergarage.upnp.Device.URLBASE_NAME = "URLBase"
staticprivate

◆ userData

Object org.cybergarage.upnp.Device.userData = null
private

◆ wirelessMode

boolean org.cybergarage.upnp.Device.wirelessMode
private

The documentation for this class was generated from the following file: