Class ConnectionRequest

  • All Implemented Interfaces:
    jakarta.resource.spi.ConnectionRequestInfo
    Direct Known Subclasses:
    QueueConnectionRequest, TopicConnectionRequest

    public class ConnectionRequest
    extends Object
    implements jakarta.resource.spi.ConnectionRequestInfo
    A ConnectionRequest instance wraps a user connection request for performing unified messaging.
    • 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.
    • Constructor Detail

      • ConnectionRequest

        public ConnectionRequest​(String userName,
                                 String password,
                                 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 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)
        Compares ConnectionRequest instances wrapped users identities.
        Specified by:
        equals in interface jakarta.resource.spi.ConnectionRequestInfo
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Returns a code based on the wrapped user identity.
        Specified by:
        hashCode in interface jakarta.resource.spi.ConnectionRequestInfo
        Overrides:
        hashCode in class Object