Package org.cybergarage.upnp
Class Service
java.lang.Object
org.cybergarage.upnp.Service
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
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
.void
addSubscriber
(Subscriber sub) void
void
void
clearSID()
int
byte[]
getSID()
getStateVariable
(String name) getSubscriber
(String name) long
boolean
hasSID()
boolean
hasStateVariable
(String name) boolean
isControlURL
(String url) boolean
isEventSubURL
(String url) boolean
boolean
static boolean
isServiceNode
(Node node) boolean
boolean
boolean
loadSCPD
(InputStream input) boolean
void
lock()
void
notify
(StateVariable stateVar) void
void
boolean
serviceSearchResponse
(SSDPPacket ssdpPacket) void
setActionListener
(ActionListener listener) void
setControlURL
(String value) void
setDescriptionURL
(String value) void
setEventSubURL
(String value) void
setQueryListener
(QueryListener queryListener) void
setSCPDURL
(String value) void
setServiceID
(String value) void
setServiceType
(String value) void
void
setTimeout
(long value) void
setUserData
(Object data) void
unlock()
void
-
Field Details
-
ELEM_NAME
- See Also:
-
SCPD_ROOTNODE
- See Also:
-
SCPD_ROOTNODE_NS
- See Also:
-
SPEC_VERSION
- See Also:
-
MAJOR
- See Also:
-
MAJOR_VALUE
- See Also:
-
MINOR
- See Also:
-
MINOR_VALUE
- See Also:
-
-
Constructor Details
-
Service
public Service() -
Service
-
-
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
-