Package zowe.client.sdk.core
Class ZosConnection
- java.lang.Object
-
- zowe.client.sdk.core.ZosConnection
-
public class ZosConnection extends Object
Z/OSMF Connection information placeholder- Version:
- 3.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description ZosConnection(String host, String zosmfPort, String user, String password)
ZosConnection constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Equals method.Optional<kong.unirest.core.Cookie>
getCookie()
Retrieve cookie objectString
getHost()
Retrieve host specifiedString
getPassword()
Retrieve password specifiedString
getUser()
Retrieve username specifiedString
getZosmfPort()
Retrieve z/OSMF port number specifiedint
hashCode()
Hashcode method.void
setCookie(kong.unirest.core.Cookie cookie)
Set a cookie token for this request.String
toString()
Return string value representing ZosConnection object
-
-
-
Constructor Detail
-
ZosConnection
public ZosConnection(String host, String zosmfPort, String user, String password)
ZosConnection constructor- Parameters:
host
- machine host pointing to backend z/OS instancezosmfPort
- machine host z/OSMF port number pointing to backend z/OS instanceuser
- machine host username with access to backend z/OS instancepassword
- 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
-
equals
public boolean equals(Object obj)
Equals method. Use all members for equality.
-
-