|
OSGi Service Platform Release 3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of a UPnP Service. Each UPnP device contains zero or more services. The UPnP description for a service defines actions, their arguments, and event characteristics.
Field Summary | |
---|---|
static java.lang.String |
ID
Property key for the optional service id. |
static java.lang.String |
TYPE
Property key for the optional service type uri. |
Method Summary | |
---|---|
UPnPAction |
getAction(java.lang.String name)
Locates a specific action by name. |
UPnPAction[] |
getActions()
Lists all actions provided by this service. |
java.lang.String |
getId()
Returns the serviceId field in the UPnP service description. |
UPnPStateVariable |
getStateVariable(java.lang.String name)
Gets a UPnPStateVariable objects provided by this service by name |
UPnPStateVariable[] |
getStateVariables()
Lists all UPnPStateVariable objects provided by this service. |
java.lang.String |
getType()
Returns the serviceType field in the UPnP service description. |
java.lang.String |
getVersion()
Returns the version suffix encoded in the serviceType field in the UPnP service description. |
Field Detail |
public static final java.lang.String TYPE
getType()
public static final java.lang.String ID
Method Detail |
public java.lang.String getId()
For standard services defined by a UPnP Forum working committee, the serviceId must contain the following components in the indicated order:
Note that upnp-org is used instead of schemas-upnp-org in this example because an XML schema is not defined for each serviceId.
For non-standard services specified by UPnP vendors, the serviceId must contain the following components in the indicated order:
public java.lang.String getType()
For standard services defined by a UPnP Forum working committee, the serviceType must contain the following components in the indicated order:
For non-standard services specified by UPnP vendors, the serviceType must contain the following components in the indicated order:
public java.lang.String getVersion()
public UPnPAction getAction(java.lang.String name)
name
- Name of action. Must not contain hyphen
or hash characters. Should be < 32 characters.public UPnPAction[] getActions()
public UPnPStateVariable[] getStateVariables()
public UPnPStateVariable getStateVariable(java.lang.String name)
name
- Name of the State Variable
|
OSGi Service Platform Release 3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |