Class ConnectionRequest
- java.lang.Object
-
- org.objectweb.joram.client.connector.ConnectionRequest
-
- All Implemented Interfaces:
ConnectionRequestInfo
- Direct Known Subclasses:
QueueConnectionRequest,TopicConnectionRequest
public class ConnectionRequest extends Object implements ConnectionRequestInfo
AConnectionRequestinstance wraps a user connection request for performing unified messaging.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidentityClassidentification class for user.protected StringpasswordPassword of the user requesting a connection to the underlying JORAM server.protected StringuserNameIdentification of the user requesting a connection to the underlying JORAM server.
-
Constructor Summary
Constructors Constructor Description ConnectionRequest(String userName, String password, String identityClass)Constructs aConnectionRequestinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ComparesConnectionRequestinstances wrapped users identities.StringgetIdentityClass()StringgetPassword()Returns the password of the user requesting a connection to the underlying JORAM server.StringgetUserName()Returns the identification of the user requesting a connection to the underlying JORAM server.inthashCode()Returns a code based on the wrapped user identity.StringtoString()
-
-
-
Field Detail
-
userName
protected String userName
Identification of the user requesting a connection to the underlying JORAM server.
-
password
protected String password
Password of the user requesting a connection to the underlying JORAM server.
-
identityClass
protected String identityClass
identification class for user.
-
-
Method Detail
-
getUserName
public String getUserName()
Returns the identification of the user requesting a connection to the underlying JORAM server.
-
getPassword
public String getPassword()
Returns the password of the user requesting a connection to the underlying JORAM server.
-
getIdentityClass
public String getIdentityClass()
- Returns:
- identity class name.
-
equals
public boolean equals(Object o)
ComparesConnectionRequestinstances wrapped users identities.- Specified by:
equalsin interfaceConnectionRequestInfo- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
Returns a code based on the wrapped user identity.- Specified by:
hashCodein interfaceConnectionRequestInfo- Overrides:
hashCodein classObject
-
-