Class CICSConnectionRequestInfo

java.lang.Object
com.ibm.jakarta.connector2.cics.CICSConnectionRequestInfo
All Implemented Interfaces:
jakarta.resource.spi.ConnectionRequestInfo
Direct Known Subclasses:
ECIConnectionRequestInfo, EPIConnectionRequestInfo

public class CICSConnectionRequestInfo extends Object implements jakarta.resource.spi.ConnectionRequestInfo
Concrete ConnectionRequestInfo Class which supports Userid and Password. It is Concrete as ECI requires nothing more so saves having to inherit. EPI may need to extend this
  • Field Details

  • Constructor Details

    • CICSConnectionRequestInfo

      public CICSConnectionRequestInfo()
  • Method Details

    • setUserName

      public void setUserName(String newUser)
      Sets the Userid for this ConnectionSpec
      Parameters:
      newUser - The new userid
    • getUserName

      public String getUserName()
      Gets the Userid for this ConnectionSpec
      Returns:
      The Userid
    • setPassword

      public void setPassword(String newPass)
      Sets the Password for this ConnectionSpec
      Parameters:
      newPass - The new password
    • getPassword

      public String getPassword()
      Gets the Password for this ConnectionSpec
      Returns:
      The Userid
    • equals

      public boolean equals(Object inObj)
      Objects are equal if they are of the same class and userName and Password are identical
      Specified by:
      equals in interface jakarta.resource.spi.ConnectionRequestInfo
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      returns a hashcode which is the same for all CRI objects. This is required to support re-authentication in WAS and since connections to the Gateway are not dependant on userid/password this means any connection will match.
      Specified by:
      hashCode in interface jakarta.resource.spi.ConnectionRequestInfo
      Overrides:
      hashCode in class Object
      Returns:
      hashcode