Package net.sbbi.upnp.services
Class Service
java.lang.Object
net.sbbi.upnp.services.Service
Representation of an UPNP service
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintgetUPNPServiceAction(String actionName) Retrieves a service action for its given namegetUPNPServiceStateVariable(String stateVariableName) Retrieves a service state variable for its given nametoString()
-
Field Details
-
serviceType
-
serviceId
-
SCPDURL
-
controlURL
-
eventSubURL
-
USN
-
serviceOwnerDevice
-
-
Constructor Details
-
Service
public Service(Node serviceCtx, URL baseDeviceURL, Device serviceOwnerDevice) throws MalformedURLException, XPathExpressionException - Parameters:
serviceCtx-baseDeviceURL-serviceOwnerDevice-- Throws:
MalformedURLExceptionXPathExpressionException
-
-
Method Details
-
getSpecVersionMajor
public int getSpecVersionMajor()- Returns:
- major version
-
getSpecVersionMinor
public int getSpecVersionMinor()- Returns:
- minor version
-
getUPNPServiceAction
Retrieves a service action for its given name- Parameters:
actionName- the service action name- Returns:
- a ServiceAction object or null if no matching action for this service has been found
-
getUPNPServiceStateVariable
Retrieves a service state variable for its given name- Parameters:
stateVariableName- the state variable name- Returns:
- a ServiceStateVariable object or null if no matching state variable has been found
-
getAvailableActionsName
- Returns:
- action names
-
getAvailableActionsSize
public int getAvailableActionsSize()- Returns:
- action count
-
getAvailableStateVariableName
- Returns:
- state variable names
-
getAvailableStateVariableSize
public int getAvailableStateVariableSize()- Returns:
- state variable count
-
getSCDPData
- Returns:
- definition xml
-
toString
-