Class ZosConnection


  • public final class ZosConnection
    extends Object
    z/OSMF Connection information placeholder
    Version:
    5.0
    Author:
    Frank Giordano
    • Method Detail

      • getHost

        public String getHost()
        Retrieve host
        Returns:
        string value
      • getZosmfPort

        public String getZosmfPort()
        Retrieve zosmfPort
        Returns:
        string value
      • getAuthType

        public AuthType getAuthType()
        Retrieve AuthType: BASIC, TOKEN or SSL enum value for http request processing
        Returns:
        AuthType enum value
      • getUser

        public String getUser()
        Retrieve user
        Returns:
        string value
      • setUser

        public void setUser​(String user)
        Set user value
        Parameters:
        user - string value
      • getPassword

        public String getPassword()
        Retrieve password
        Returns:
        string value
      • getToken

        public kong.unirest.core.Cookie getToken()
        Retrieve a cookie object representing a TOKEN
        Returns:
        Cookie object
      • getCertFilePath

        public String getCertFilePath()
        Retrieve certFilePath
        Returns:
        string value
      • getCertPassword

        public String getCertPassword()
        Retrieve certPassword
        Returns:
        string value
      • getBasePath

        public Optional<String> getBasePath()
        Retrieve the base path for z/OSMF REST endpoints
        Returns:
        string value
      • getZosmfUrl

        public String getZosmfUrl()
        Retrieve the z/OSMF url
        Returns:
        string value
      • equals

        public boolean equals​(Object obj)
        Equals method comparing fields based on the authentication type.

        For BASIC authentication: compares host, port, authType, basePath, user, and password. For TOKEN authentication: compares host, port, authType, basePath, and token value. For SSL authentication: compares host, port, authType, basePath, certFilePath, and certPassword.

        Overrides:
        equals in class Object
        Parameters:
        obj - object to compare
        Returns:
        true if equal, false otherwise
      • hashCode

        public int hashCode()
        Hashcode method consistent with equals().
        Overrides:
        hashCode in class Object
        Returns:
        int value representing the hash code
      • toString

        public String toString()
        Return string value representing ZosConnection object
        Overrides:
        toString in class Object
        Returns:
        string representation of ZosConnection