Package net.sbbi.upnp.messages
Class UPNPMessageFactory
java.lang.Object
net.sbbi.upnp.messages.UPNPMessageFactory
Factory to create UPNP messages to access and communicate with a
given UPNPDevice service capabilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String serviceActionName) Creation of a new ActionMessage to communicate with the UPNP devicegetStateVariableMessage
(String serviceStateVariable) Creation of a new StateVariableMessage to communicate with the UPNP device, for a service state variable query
-
Field Details
-
service
-
-
Constructor Details
-
UPNPMessageFactory
- Parameters:
service
- the UPNPService that will be used to generate messages by thid factory
-
-
Method Details
-
getMessage
Creation of a new ActionMessage to communicate with the UPNP device- Parameters:
serviceActionName
- the name of a service action, this name is case sensitive and matches exactly the name provided by the UPNP device in the XML definition file- Returns:
- a ActionMessage object or null if the action is unknown for this service messages factory
-
getStateVariableMessage
Creation of a new StateVariableMessage to communicate with the UPNP device, for a service state variable query- Parameters:
serviceStateVariable
- the name of a service state variable, this name is case sensitive and matches exactly the name provided by the UPNP device in the XML definition file- Returns:
- a StateVariableMessage object or null if the state variable is unknown for this service mesages factory
-