org.jboss.mq
Class ConnectionToken

java.lang.Object
  extended byorg.jboss.mq.ConnectionToken
All Implemented Interfaces:
java.io.Serializable

public class ConnectionToken
extends java.lang.Object
implements java.io.Serializable

This class is the broker point of view on a SpyConnection (it contains a ConnectionReceiver). Remember that for most IL's it will be serialized!

See Also:
Serialized Form

Field Summary
protected  java.lang.String clientID
          The clientID of the connection.
 ClientIL (src) clientIL
          Used by the server to callback to client.
 
Constructor Summary
ConnectionToken(java.lang.String clientID, ClientIL (src)  clientIL)
          Create a new ConnectionToken
ConnectionToken(java.lang.String clientID, ClientIL (src)  clientIL, java.lang.String sessionId)
          Create a new ConnectionToken
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClientID()
          Get the client id
 java.lang.String getSessionId()
          Get the session id
 int hashCode()
           
 void setClientID(java.lang.String clientID)
          Set the client id
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

clientIL

public ClientIL (src)  clientIL
Used by the server to callback to client. Will (most of the time) be serialized when sent to the server.


clientID

protected java.lang.String clientID
The clientID of the connection.

Constructor Detail

ConnectionToken

public ConnectionToken(java.lang.String clientID,
                       ClientIL (src)  clientIL)
Create a new ConnectionToken

Parameters:
clientID - the client id
clientIL - the client il

ConnectionToken

public ConnectionToken(java.lang.String clientID,
                       ClientIL (src)  clientIL,
                       java.lang.String sessionId)
Create a new ConnectionToken

Parameters:
clientID - the client id
clientIL - the client il
sessionId - the session id
Method Detail

getClientID

public java.lang.String getClientID()
Get the client id

Returns:
the client id

setClientID

public void setClientID(java.lang.String clientID)
Set the client id

Parameters:
clientID - the client id

getSessionId

public java.lang.String getSessionId()
Get the session id

Returns:
the session id

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

toString

public java.lang.String toString()