context.arch.handler
Class HandlerInfo

java.lang.Object
  extended bycontext.arch.handler.HandlerInfo

public class HandlerInfo
extends java.lang.Object

This class acts as a container for handler info. It holds a reference to a widget handler, the subscription id, the id of the widget, the name of the callback on the subscriber side, and the name of the callback on the widget side.

See Also:
Handler

Constructor Summary
HandlerInfo()
          Basic empty constructor
HandlerInfo(Handler handler, java.lang.String subId, java.lang.String remoteId, java.lang.String subCallback)
          Constructor
HandlerInfo(Handler handler, java.lang.String subId, java.lang.String remoteId, java.lang.String remoteHost, int remotePort, java.lang.String subCallback)
          Full constructor that takes all input parameters
 
Method Summary
 Handler getHandler()
          Returns the context widget handler
 java.lang.String getRemoteHost()
          Returns the widget host
 java.lang.String getRemoteId()
          Returns the widget id
 int getRemotePort()
          Returns the widget port
 java.lang.String getSubId()
          Returns the subscription id
 java.lang.String getSubscriptionCallback()
          Returns the name of the subscription callback
 void setHandler(Handler handler)
          Sets the context widget handler
 void setRemoteHost(java.lang.String host)
          Sets the widget host
 void setRemoteId(java.lang.String id)
          Sets the widget id
 void setRemotePort(int port)
          Sets the widget port
 void setSubId(java.lang.String id)
          Sets the subscription id
 void setSubscriptionCallback(java.lang.String subCallback)
          Sets the name of the subscription callback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerInfo

public HandlerInfo()
Basic empty constructor


HandlerInfo

public HandlerInfo(Handler handler,
                   java.lang.String subId,
                   java.lang.String remoteId,
                   java.lang.String remoteHost,
                   int remotePort,
                   java.lang.String subCallback)
Full constructor that takes all input parameters

Parameters:
handler - Reference to a context widget handler
subId - Subscription id of a subscriber. This is returned anytime a callback message is sent between the subscriber to the widget (in either direction).
remoteId - Id of the widget object

HandlerInfo

public HandlerInfo(Handler handler,
                   java.lang.String subId,
                   java.lang.String remoteId,
                   java.lang.String subCallback)
Constructor

Parameters:
handler - Reference to a context widget handler
subId - Subscription id of a subscriber. This is returned anytime a callback message is sent between the subscriber to the widget (in either direction).
remoteId - Id of the widget object
Method Detail

getSubId

public java.lang.String getSubId()
Returns the subscription id

Returns:
the subscription id

setSubId

public void setSubId(java.lang.String id)
Sets the subscription id


getRemoteId

public java.lang.String getRemoteId()
Returns the widget id

Returns:
the widget id

setRemoteId

public void setRemoteId(java.lang.String id)
Sets the widget id


getRemoteHost

public java.lang.String getRemoteHost()
Returns the widget host

Returns:
the widget host

setRemoteHost

public void setRemoteHost(java.lang.String host)
Sets the widget host


getRemotePort

public int getRemotePort()
Returns the widget port

Returns:
the widget port

setRemotePort

public void setRemotePort(int port)
Sets the widget port


getSubscriptionCallback

public java.lang.String getSubscriptionCallback()
Returns the name of the subscription callback

Returns:
the name of the subscription callback

setSubscriptionCallback

public void setSubscriptionCallback(java.lang.String subCallback)
Sets the name of the subscription callback


getHandler

public Handler getHandler()
Returns the context widget handler

Returns:
the context widget handler

setHandler

public void setHandler(Handler handler)
Sets the context widget handler