public class Service
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.net.URL |
controlURL |
java.net.URL |
eventSubURL |
java.net.URL |
SCPDURL |
java.lang.String |
serviceId |
Device |
serviceOwnerDevice |
java.lang.String |
serviceType |
java.lang.String |
USN |
| Constructor and Description |
|---|
Service(org.w3c.dom.Node serviceCtx,
java.net.URL baseDeviceURL,
Device serviceOwnerDevice) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator |
getAvailableActionsName() |
int |
getAvailableActionsSize() |
java.util.Iterator |
getAvailableStateVariableName() |
int |
getAvailableStateVariableSize() |
java.lang.String |
getSCDPData() |
int |
getSpecVersionMajor() |
int |
getSpecVersionMinor() |
Action |
getUPNPServiceAction(java.lang.String actionName)
Retrieves a service action for its given name
|
StateVariable |
getUPNPServiceStateVariable(java.lang.String stateVariableName)
Retrieves a service state variable for its given name
|
java.lang.String |
toString() |
public final java.lang.String serviceType
public final java.lang.String serviceId
public final java.net.URL SCPDURL
public final java.net.URL controlURL
public final java.net.URL eventSubURL
public final java.lang.String USN
public final Device serviceOwnerDevice
public Service(org.w3c.dom.Node serviceCtx,
java.net.URL baseDeviceURL,
Device serviceOwnerDevice)
throws java.net.MalformedURLException,
javax.xml.xpath.XPathExpressionException
serviceCtx - baseDeviceURL - serviceOwnerDevice - java.net.MalformedURLExceptionjavax.xml.xpath.XPathExpressionExceptionpublic int getSpecVersionMajor()
public int getSpecVersionMinor()
public Action getUPNPServiceAction(java.lang.String actionName)
actionName - the service action namepublic StateVariable getUPNPServiceStateVariable(java.lang.String stateVariableName)
stateVariableName - the state variable namepublic java.util.Iterator getAvailableActionsName()
public int getAvailableActionsSize()
public java.util.Iterator getAvailableStateVariableName()
public int getAvailableStateVariableSize()
public java.lang.String getSCDPData()
public java.lang.String toString()
toString in class java.lang.Object