|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.upnp.sample.tv.PowerService
public class PowerService
Field Summary |
---|
Fields inherited from interface org.osgi.service.upnp.UPnPService |
---|
ID, TYPE |
Constructor Summary | |
---|---|
PowerService()
|
Method Summary | |
---|---|
UPnPAction |
getAction(String name)
Locates a specific action by name. |
UPnPAction[] |
getActions()
Lists all actions provided by this service. |
String |
getId()
Returns the serviceId field in the UPnP service description. |
UPnPStateVariable |
getStateVariable(String name)
Gets a UPnPStateVariable objects provided by this service by
name |
UPnPStateVariable[] |
getStateVariables()
Lists all UPnPStateVariable objects provided by this service. |
String |
getType()
Returns the serviceType field in the UPnP service description. |
String |
getVersion()
Returns the version suffix encoded in the serviceType field in
the UPnP service description. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerService()
Method Detail |
---|
public String getId()
UPnPService
serviceId
field in the UPnP service description.
For standard services defined by a UPnP Forum working committee, the serviceId must contain the following components in the indicated order:
urn:upnp-org:serviceId:
urn:upnp-org:serviceId:serviceID
.
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:
urn:
:serviceId:
urn:domain-name:serviceId:serviceID
.
getId
in interface UPnPService
public String getType()
UPnPService
serviceType
field in the UPnP service description.
For standard services defined by a UPnP Forum working committee, the serviceType must contain the following components in the indicated order:
urn:schemas-upnp-org:service:
urn:schemas-upnp-org:service:serviceType:v
.
For non-standard services specified by UPnP vendors, the
serviceType
must contain the following components in the
indicated order:
urn:
:service:
urn:domain-name:service:serviceType:v
.
getType
in interface UPnPService
public String getVersion()
UPnPService
serviceType
field in
the UPnP service description.
getVersion
in interface UPnPService
public UPnPAction getAction(String name)
UPnPService
getAction
in interface UPnPService
name
- Name of action. Must not contain hyphen or hash characters.
Should be < 32 characters.
null
if no action is found.public UPnPAction[] getActions()
UPnPService
getActions
in interface UPnPService
UPnPAction[]
)or null
if
no actions are defined for this service.public UPnPStateVariable[] getStateVariables()
UPnPService
UPnPStateVariable
objects provided by this service.
getStateVariables
in interface UPnPService
null
if none are defined
for this service.public UPnPStateVariable getStateVariable(String name)
UPnPService
UPnPStateVariable
objects provided by this service by
name
getStateVariable
in interface UPnPService
name
- Name of the State Variable
null
if no such state variable
exists for this service.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |