Class ZosConnection


  • public class ZosConnection
    extends Object
    Z/OSMF Connection information placeholder
    Version:
    3.0
    Author:
    Frank Giordano
    • Constructor Detail

      • ZosConnection

        public ZosConnection​(String host,
                             String zosmfPort,
                             String user,
                             String password)
        ZosConnection constructor
        Parameters:
        host - machine host pointing to backend z/OS instance
        zosmfPort - machine host z/OSMF port number pointing to backend z/OS instance
        user - machine host username with access to backend z/OS instance
        password - machine host username's password with access to backend z/OS instance
    • Method Detail

      • getHost

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

        public String getZosmfPort()
        Retrieve z/OSMF port number specified
        Returns:
        port value
      • getUser

        public String getUser()
        Retrieve username specified
        Returns:
        user value
      • getPassword

        public String getPassword()
        Retrieve password specified
        Returns:
        password value
      • getCookie

        public Optional<kong.unirest.core.Cookie> getCookie()
        Retrieve cookie object
        Returns:
        cookie object
      • setCookie

        public void setCookie​(kong.unirest.core.Cookie cookie)
        Set a cookie token for this request. This is optional for most requests and not needed. Setting the cookie will remove the HTTP header authentication. Setting the cookie value as null after giving it a value will revert/enable the HTTP header authentication for future requests.
        Parameters:
        cookie - Cookie object containing a token value
      • toString

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

        public boolean equals​(Object obj)
        Equals method. Use all members for equality.
        Overrides:
        equals in class Object
        Parameters:
        obj - object
        Returns:
        true or false
      • hashCode

        public int hashCode()
        Hashcode method. Use all members for hashing.
        Overrides:
        hashCode in class Object
        Returns:
        int value