com.aelitis.net.upnp.impl.services
Class UPnPServiceImpl

java.lang.Object
  extended by com.aelitis.net.upnp.impl.services.UPnPServiceImpl
All Implemented Interfaces:
UPnPService

public class UPnPServiceImpl
extends java.lang.Object
implements UPnPService


Constructor Summary
UPnPServiceImpl(UPnPDeviceImpl _device, java.lang.String indent, SimpleXMLParserDocumentNode service_node)
           
 
Method Summary
 UPnPAction getAction(java.lang.String name)
           
 UPnPAction[] getActions()
           
 java.util.List<java.net.URL> getControlURLs()
           
 java.net.URL getDescriptionURL()
           
 UPnPDevice getDevice()
           
 boolean getDirectInvocations()
           
protected  java.net.URL getPreferredControlURL()
           
 java.lang.String getServiceType()
           
 UPnPSpecificService getSpecificService()
          gets a specific service if such is supported
 UPnPStateVariable getStateVariable(java.lang.String name)
           
 UPnPStateVariable[] getStateVariables()
           
protected  java.net.URL getURL(java.lang.String basis)
           
 boolean isConnectable()
           
protected  void loadDescription()
           
protected  void parseActions(SimpleXMLParserDocumentNode action_list)
           
protected  void parseStateVars(SimpleXMLParserDocumentNode action_list)
           
 void setDirectInvocations(boolean force)
           
 void setPreferredControlURL(java.net.URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UPnPServiceImpl

public UPnPServiceImpl(UPnPDeviceImpl _device,
                       java.lang.String indent,
                       SimpleXMLParserDocumentNode service_node)
Method Detail

getDevice

public UPnPDevice getDevice()
Specified by:
getDevice in interface UPnPService

getServiceType

public java.lang.String getServiceType()
Specified by:
getServiceType in interface UPnPService

isConnectable

public boolean isConnectable()
Specified by:
isConnectable in interface UPnPService

getActions

public UPnPAction[] getActions()
                        throws UPnPException
Specified by:
getActions in interface UPnPService
Throws:
UPnPException

getAction

public UPnPAction getAction(java.lang.String name)
                     throws UPnPException
Specified by:
getAction in interface UPnPService
Throws:
UPnPException

getStateVariables

public UPnPStateVariable[] getStateVariables()
                                      throws UPnPException
Specified by:
getStateVariables in interface UPnPService
Throws:
UPnPException

getStateVariable

public UPnPStateVariable getStateVariable(java.lang.String name)
                                   throws UPnPException
Specified by:
getStateVariable in interface UPnPService
Throws:
UPnPException

getDescriptionURL

public java.net.URL getDescriptionURL()
                               throws UPnPException
Throws:
UPnPException

getControlURLs

public java.util.List<java.net.URL> getControlURLs()
                                            throws UPnPException
Specified by:
getControlURLs in interface UPnPService
Throws:
UPnPException

setPreferredControlURL

public void setPreferredControlURL(java.net.URL url)
Specified by:
setPreferredControlURL in interface UPnPService

getPreferredControlURL

protected java.net.URL getPreferredControlURL()

getURL

protected java.net.URL getURL(java.lang.String basis)
                       throws UPnPException
Throws:
UPnPException

loadDescription

protected void loadDescription()
                        throws UPnPException
Throws:
UPnPException

parseActions

protected void parseActions(SimpleXMLParserDocumentNode action_list)

parseStateVars

protected void parseStateVars(SimpleXMLParserDocumentNode action_list)

getSpecificService

public UPnPSpecificService getSpecificService()
Description copied from interface: UPnPService
gets a specific service if such is supported

Specified by:
getSpecificService in interface UPnPService
Returns:

getDirectInvocations

public boolean getDirectInvocations()
Specified by:
getDirectInvocations in interface UPnPService

setDirectInvocations

public void setDirectInvocations(boolean force)
Specified by:
setDirectInvocations in interface UPnPService