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
|
Constructor Summary |
UPNPService(org.apache.commons.jxpath.JXPathContext serviceCtx,
URL baseDeviceURL,
UPNPDevice serviceOwnerDevice)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
UPNPService
public UPNPService(org.apache.commons.jxpath.JXPathContext serviceCtx,
URL baseDeviceURL,
UPNPDevice serviceOwnerDevice)
throws MalformedURLException
- Throws:
MalformedURLException
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()
Copyright © 2010. All Rights Reserved.