Package net.sbbi.upnp.messages
Class StateVariableMessage
- java.lang.Object
-
- net.sbbi.upnp.messages.StateVariableMessage
-
public class StateVariableMessage extends Object
This class is used to create state variable messages to comminicate with the device- Version:
- 1.0
- Author:
- SuperBonBon
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStateVariableMessage(UPNPService service, ServiceStateVariable serviceStateVar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateVariableResponseservice()Executes the state variable query and retuns the UPNP device response, according to the UPNP specs, this method could take up to 30 secs to process ( time allowed for a device to respond to a request )
-
-
-
Constructor Detail
-
StateVariableMessage
protected StateVariableMessage(UPNPService service, ServiceStateVariable serviceStateVar)
-
-
Method Detail
-
service
public StateVariableResponse service() throws IOException, UPNPResponseException
Executes the state variable query and retuns the UPNP device response, according to the UPNP specs, this method could take up to 30 secs to process ( time allowed for a device to respond to a request )- Returns:
- a state variable response object containing the variable value
- Throws:
IOException- if some IOException occurs during message send and reception processUPNPResponseException- if an UPNP error message is returned from the server or if some parsing exception occurs ( detailErrorCode = 899, detailErrorDescription = SAXException message )
-
-