org.objectweb.joram.client.connector

Class ConnectionRequest

Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo
Known Direct 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 String
password
Password of the user requesting a connection to the underlying JORAM server.
protected String
userName
Identification of the user requesting a connection to the underlying JORAM server.

Constructor Summary

ConnectionRequest(String userName, String password)
Constructs a ConnectionRequest instance.

Method Summary

boolean
equals(Object o)
Compares ConnectionRequest instances wrapped users identities.
String
getPassword()
Returns the password of the user requesting a connection to the underlying JORAM server.
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.

Field Details

password

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


userName

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

Constructor Details

ConnectionRequest

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

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

Method Details

equals

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


getPassword

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


getUserName

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


hashCode

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


Copyright B) 2004 Scalagent - All rights reserved