Package org.cybergarage.upnp
Class Service
java.lang.Object
org.cybergarage.upnp.Service
public class Service extends Object
-
Field Summary
Fields Modifier and Type Field Description static String
ELEM_NAME
static String
MAJOR
static String
MAJOR_VALUE
static String
MINOR
static String
MINOR_VALUE
static String
SCPD_ROOTNODE
static String
SCPD_ROOTNODE_NS
static String
SPEC_VERSION
-
Constructor Summary
-
Method Summary
-
Field Details
-
ELEM_NAME
- See Also:
- Constant Field Values
-
SCPD_ROOTNODE
- See Also:
- Constant Field Values
-
SCPD_ROOTNODE_NS
- See Also:
- Constant Field Values
-
SPEC_VERSION
- See Also:
- Constant Field Values
-
MAJOR
- See Also:
- Constant Field Values
-
MAJOR_VALUE
- See Also:
- Constant Field Values
-
MINOR
- See Also:
- Constant Field Values
-
MINOR_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getServiceNode
-
lock
public void lock() -
unlock
public void unlock() -
isServiceNode
-
getDevice
-
getRootDevice
-
setServiceType
-
getServiceType
-
setServiceID
-
getServiceID
-
updateConfigId
public void updateConfigId() -
getConfigId
public int getConfigId() -
setSCPDURL
-
getSCPDURL
-
isSCPDURL
-
setControlURL
-
getControlURL
-
isControlURL
-
setEventSubURL
-
getEventSubURL
-
isEventSubURL
-
loadSCPD
- Throws:
InvalidDescriptionException
-
loadSCPD
- Throws:
ParserException
-
loadSCPD
- Throws:
ParserException
- Since:
- 1.8.0
-
setDescriptionURL
-
getDescriptionURL
-
getSCPDData
public byte[] getSCPDData() -
getActionList
-
getAction
-
addAction
-
getServiceStateTable
-
getStateVariable
-
hasStateVariable
-
isService
-
announce
-
byebye
-
serviceSearchResponse
-
setQueryListener
-
getSubscriberList
-
addSubscriber
-
removeSubscriber
-
getSubscriber
-
notify
-
notifyAllStateVariables
public void notifyAllStateVariables() -
getSID
-
setSID
-
clearSID
public void clearSID() -
hasSID
public boolean hasSID() -
isSubscribed
public boolean isSubscribed() -
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long value) -
setActionListener
-
addStateVariable
Add the StateVariable to the service.
Note: This method should be used to create a dynamic
Device withtout writing any XML that describe the device
.
Note: that no control for duplicate StateVariable is done.- Parameters:
var
- StateVariable that will be added
-
setUserData
-
getUserData
-