Joram 5.2.4

org.objectweb.joram.client.connector
Class ConnectionRequest

java.lang.Object
  extended by org.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 identityClass
          identification class for user.
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, java.lang.String identityClass)
          Constructs a ConnectionRequest instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares ConnectionRequest instances wrapped users identities.
 java.lang.String getIdentityClass()
           
 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.


identityClass

protected java.lang.String identityClass
identification class for user.

Constructor Detail

ConnectionRequest

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

Parameters:
userName - Name of the user requesting a connection.
password - Password of the user requesting a connection.
identityClass - identity class name
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.


getIdentityClass

public java.lang.String getIdentityClass()
Returns:
identity class name.

equals

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

Specified by:
equals in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
equals in class java.lang.Object

hashCode

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

Specified by:
hashCode in interface javax.resource.spi.ConnectionRequestInfo
Overrides:
hashCode in class java.lang.Object

Joram 5.2.4

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved