Package net.sbbi.upnp.services
Class UPNPService
- java.lang.Object
-
- net.sbbi.upnp.services.UPNPService
-
public class UPNPService extends Object
Representation of an UPNP service- Version:
- 1.0
- Author:
- SuperBonBon
-
-
Field Summary
Fields Modifier and Type Field Description protected URLcontrolURLprotected URLeventSubURLprotected URLSCPDURLprotected StringSCPDURLDataprotected StringserviceIdprotected UPNPDeviceserviceOwnerDeviceprotected StringserviceTypeprotected MapUPNPServiceActionsprotected MapUPNPServiceStateVariables
-
Constructor Summary
Constructors Constructor Description UPNPService(org.apache.commons.jxpath.JXPathContext serviceCtx, URL baseDeviceURL, UPNPDevice serviceOwnerDevice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IteratorgetAvailableActionsName()intgetAvailableActionsSize()IteratorgetAvailableStateVariableName()intgetAvailableStateVariableSize()URLgetControlURL()URLgetEventSubURL()StringgetSCDPData()URLgetSCPDURL()StringgetServiceId()UPNPDevicegetServiceOwnerDevice()StringgetServiceType()intgetSpecVersionMajor()intgetSpecVersionMinor()org.apache.commons.jxpath.ContainergetUPNPService()Used for JXPath parsing, do not use this methodServiceActiongetUPNPServiceAction(String actionName)Retreives a service action for its given nameServiceStateVariablegetUPNPServiceStateVariable(String stateVariableName)Retreives a service state variable for its given nameStringgetUSN()
-
-
-
Field Detail
-
serviceType
protected String serviceType
-
serviceId
protected String serviceId
-
SCPDURL
protected URL SCPDURL
-
SCPDURLData
protected String SCPDURLData
-
controlURL
protected URL controlURL
-
eventSubURL
protected URL eventSubURL
-
serviceOwnerDevice
protected UPNPDevice serviceOwnerDevice
-
UPNPServiceActions
protected Map UPNPServiceActions
-
UPNPServiceStateVariables
protected Map UPNPServiceStateVariables
-
-
Constructor Detail
-
UPNPService
public UPNPService(org.apache.commons.jxpath.JXPathContext serviceCtx, URL baseDeviceURL, UPNPDevice serviceOwnerDevice) throws MalformedURLException- Throws:
MalformedURLException
-
-
Method Detail
-
getServiceType
public String getServiceType()
-
getServiceId
public String getServiceId()
-
getUSN
public String getUSN()
-
getSCPDURL
public URL getSCPDURL()
-
getControlURL
public URL getControlURL()
-
getEventSubURL
public URL getEventSubURL()
-
getSpecVersionMajor
public int getSpecVersionMajor()
-
getSpecVersionMinor
public int getSpecVersionMinor()
-
getServiceOwnerDevice
public UPNPDevice getServiceOwnerDevice()
-
getUPNPServiceAction
public ServiceAction getUPNPServiceAction(String actionName)
Retreives 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
public ServiceStateVariable getUPNPServiceStateVariable(String stateVariableName)
Retreives 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
public Iterator getAvailableActionsName()
-
getAvailableActionsSize
public int getAvailableActionsSize()
-
getAvailableStateVariableName
public Iterator getAvailableStateVariableName()
-
getAvailableStateVariableSize
public int getAvailableStateVariableSize()
-
getUPNPService
public org.apache.commons.jxpath.Container getUPNPService()
Used for JXPath parsing, do not use this method- Returns:
- a Container object for Xpath parsing capabilities
-
getSCDPData
public String getSCDPData()
-
-