net.sbbi.upnp.messages
Class UPNPMessageFactory

java.lang.Object
  extended bynet.sbbi.upnp.messages.UPNPMessageFactory

public class UPNPMessageFactory
extends java.lang.Object

Factory to create UPNP messages to access and communicate with a given UPNPDevice service capabilities

Version:
1.0
Author:
SuperBonBon

Method Summary
 ActionMessage getMessage(java.lang.String serviceActionName)
          Creation of a new ActionMessage to communicate with the UPNP device
static UPNPMessageFactory getNewInstance(UPNPService service)
          Generate a new factory instance for a given device service definition object
 StateVariableMessage getStateVariableMessage(java.lang.String serviceStateVariable)
          Creation of a new StateVariableMessage to communicate with the UPNP device, for a service state variable query
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNewInstance

public static UPNPMessageFactory getNewInstance(UPNPService service)
Generate a new factory instance for a given device service definition object

Parameters:
service - the UPNP service definition object for messages creation
Returns:
a new message factory

getMessage

public ActionMessage getMessage(java.lang.String serviceActionName)
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

public StateVariableMessage getStateVariableMessage(java.lang.String serviceStateVariable)
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


Copyright © 2005 SuperBonBon Industries. All Rights Reserved.