Class UPNPService


  • public class UPNPService
    extends Object
    Representation of an UPNP service
    Version:
    1.0
    Author:
    SuperBonBon
    • 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
    • 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()