net.sbbi.upnp.services
Class UPNPService

java.lang.Object
  extended by net.sbbi.upnp.services.UPNPService

public class UPNPService
extends Object

Representation of an UPNP service

Version:
1.0
Author:
SuperBonBon

Field Summary
protected  URL controlURL
           
protected  URL eventSubURL
           
protected  URL SCPDURL
           
protected  String SCPDURLData
           
protected  String serviceId
           
protected  UPNPDevice serviceOwnerDevice
           
protected  String serviceType
           
protected  Map UPNPServiceActions
           
protected  Map UPNPServiceStateVariables
           
 
Constructor Summary
UPNPService(org.apache.commons.jxpath.JXPathContext serviceCtx, URL baseDeviceURL, UPNPDevice serviceOwnerDevice)
           
 
Method Summary
 Iterator getAvailableActionsName()
           
 int getAvailableActionsSize()
           
 Iterator getAvailableStateVariableName()
           
 int getAvailableStateVariableSize()
           
 URL getControlURL()
           
 URL getEventSubURL()
           
 String getSCDPData()
           
 URL getSCPDURL()
           
 String getServiceId()
           
 UPNPDevice getServiceOwnerDevice()
           
 String getServiceType()
           
 int getSpecVersionMajor()
           
 int getSpecVersionMinor()
           
 org.apache.commons.jxpath.Container getUPNPService()
          Used for JXPath parsing, do not use this method
 ServiceAction getUPNPServiceAction(String actionName)
          Retreives a service action for its given name
 ServiceStateVariable getUPNPServiceStateVariable(String stateVariableName)
          Retreives a service state variable for its given name
 String getUSN()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()


Copyright © 2010. All Rights Reserved.