org.objectweb.joram.client.connector
Class ConnectionRequest

java.lang.Object
  extended byorg.objectweb.joram.client.connector.ConnectionRequest
All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo
Direct Known Subclasses:
QueueConnectionRequest, TopicConnectionRequest

public class ConnectionRequest
extends java.lang.Object
implements javax.resource.spi.ConnectionRequestInfo

A ConnectionRequest instance wraps a user connection request for performing unified messaging.


Field Summary
protected  java.lang.String password
          Password of the user requesting a connection to the underlying JORAM server.
protected  java.lang.String userName
          Identification of the user requesting a connection to the underlying JORAM server.
 
Constructor Summary
ConnectionRequest(java.lang.String userName, java.lang.String password)
          Constructs a ConnectionRequest instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares ConnectionRequest instances wrapped users identities.
 java.lang.String getPassword()
          Returns the password of the user requesting a connection to the underlying JORAM server.
 java.lang.String getUserName()
          Returns the identification of the user requesting a connection to the underlying JORAM server.
 int hashCode()
          Returns a code based on the wrapped user identity.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userName

protected java.lang.String userName
Identification of the user requesting a connection to the underlying JORAM server.


password

protected java.lang.String password
Password of the user requesting a connection to the underlying JORAM server.

Constructor Detail

ConnectionRequest

public ConnectionRequest(java.lang.String userName,
                         java.lang.String password)
Constructs a ConnectionRequest instance.

Parameters:
userName - Name of the user requesting a connection.
password - Password of the user requesting a connection.
Method Detail

getUserName

public java.lang.String getUserName()
Returns the identification of the user requesting a connection to the underlying JORAM server.


getPassword

public java.lang.String getPassword()
Returns the password of the user requesting a connection to the underlying JORAM server.


equals

public boolean equals(java.lang.Object o)
Compares ConnectionRequest instances wrapped users identities.

Specified by:
equals in interface javax.resource.spi.ConnectionRequestInfo

hashCode

public int hashCode()
Returns a code based on the wrapped user identity.

Specified by:
hashCode in interface javax.resource.spi.ConnectionRequestInfo


Copyright ? 2004 Scalagent - All rights reserved