public class Service extends Object
Modifier and Type | Field and Description |
---|---|
URL |
controlURL |
URL |
eventSubURL |
URL |
SCPDURL |
String |
serviceId |
Device |
serviceOwnerDevice |
String |
serviceType |
String |
USN |
Constructor and Description |
---|
Service(Node serviceCtx,
URL baseDeviceURL,
Device serviceOwnerDevice) |
Modifier and Type | Method and Description |
---|---|
Iterator<String> |
getAvailableActionsName() |
int |
getAvailableActionsSize() |
Iterator<String> |
getAvailableStateVariableName() |
int |
getAvailableStateVariableSize() |
String |
getSCDPData() |
int |
getSpecVersionMajor() |
int |
getSpecVersionMinor() |
Action |
getUPNPServiceAction(String actionName)
Retrieves a service action for its given name
|
StateVariable |
getUPNPServiceStateVariable(String stateVariableName)
Retrieves a service state variable for its given name
|
String |
toString() |
public final String serviceType
public final String serviceId
public final URL SCPDURL
public final URL controlURL
public final URL eventSubURL
public final String USN
public final Device serviceOwnerDevice
public Service(Node serviceCtx, URL baseDeviceURL, Device serviceOwnerDevice) throws MalformedURLException, XPathExpressionException
serviceCtx
- baseDeviceURL
- serviceOwnerDevice
- MalformedURLException
XPathExpressionException
public int getSpecVersionMajor()
public int getSpecVersionMinor()
public Action getUPNPServiceAction(String actionName)
actionName
- the service action namepublic StateVariable getUPNPServiceStateVariable(String stateVariableName)
stateVariableName
- the state variable namepublic int getAvailableActionsSize()
public Iterator<String> getAvailableStateVariableName()
public int getAvailableStateVariableSize()
public String getSCDPData()
Copyright © 2013. All Rights Reserved.