Class UPnPServiceImpl
- java.lang.Object
-
- com.biglybt.net.upnp.impl.services.UPnPServiceImpl
-
- All Implemented Interfaces:
UPnPService
public class UPnPServiceImpl extends java.lang.Object implements UPnPService
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List
actions
private UPnPDeviceImpl
device
private boolean
direct_invoke
private java.lang.String
local_control_url
private java.lang.String
local_desc_url
private java.net.URL
preferred_control_url
private java.lang.String
service_type
private java.util.List
state_vars
-
Constructor Summary
Constructors Constructor Description UPnPServiceImpl(UPnPDeviceImpl _device, java.lang.String indent, SimpleXMLParserDocumentNode service_node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 supportedUPnPStateVariable
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)
-
-
-
Field Detail
-
device
private final UPnPDeviceImpl device
-
service_type
private java.lang.String service_type
-
local_desc_url
private java.lang.String local_desc_url
-
local_control_url
private java.lang.String local_control_url
-
actions
private java.util.List actions
-
state_vars
private java.util.List state_vars
-
direct_invoke
private boolean direct_invoke
-
preferred_control_url
private java.net.URL preferred_control_url
-
-
Constructor Detail
-
UPnPServiceImpl
public UPnPServiceImpl(UPnPDeviceImpl _device, java.lang.String indent, SimpleXMLParserDocumentNode service_node)
-
-
Method Detail
-
getDevice
public UPnPDevice getDevice()
- Specified by:
getDevice
in interfaceUPnPService
-
getServiceType
public java.lang.String getServiceType()
- Specified by:
getServiceType
in interfaceUPnPService
-
isConnectable
public boolean isConnectable()
- Specified by:
isConnectable
in interfaceUPnPService
-
getActions
public UPnPAction[] getActions() throws UPnPException
- Specified by:
getActions
in interfaceUPnPService
- Throws:
UPnPException
-
getAction
public UPnPAction getAction(java.lang.String name) throws UPnPException
- Specified by:
getAction
in interfaceUPnPService
- Throws:
UPnPException
-
getStateVariables
public UPnPStateVariable[] getStateVariables() throws UPnPException
- Specified by:
getStateVariables
in interfaceUPnPService
- Throws:
UPnPException
-
getStateVariable
public UPnPStateVariable getStateVariable(java.lang.String name) throws UPnPException
- Specified by:
getStateVariable
in interfaceUPnPService
- 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 interfaceUPnPService
- Throws:
UPnPException
-
setPreferredControlURL
public void setPreferredControlURL(java.net.URL url)
- Specified by:
setPreferredControlURL
in interfaceUPnPService
-
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 interfaceUPnPService
- Returns:
-
getDirectInvocations
public boolean getDirectInvocations()
- Specified by:
getDirectInvocations
in interfaceUPnPService
-
setDirectInvocations
public void setDirectInvocations(boolean force)
- Specified by:
setDirectInvocations
in interfaceUPnPService
-
-