Package com.bmc.ims
Class JCLService
- java.lang.Object
-
- com.bmc.ims.JCLService
-
- All Implemented Interfaces:
Serializable
public class JCLService extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JCLService(boolean debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseObject
doRequest(String url, String method, String requestBody, Properties headers, TaskListener listener)
Setup the secure connection and do the request.void
login(String host, String port, String user, String pw, TaskListener listener)
Call a random z/OSMF REST API that requires credentials (in this case - z/OSMF information retrieval service) for validating the connection, and obtaining authentication token on user login.
-
-
-
Method Detail
-
login
public void login(String host, String port, String user, String pw, TaskListener listener) throws AbortException
Call a random z/OSMF REST API that requires credentials (in this case - z/OSMF information retrieval service) for validating the connection, and obtaining authentication token on user login. The user can then include a token in the header on subsequent requests to the z/OSMF REST services API.- Parameters:
host
- z/OS host nameport
- port numberuser
- user namepw
- user passwordlistener
- task listener that receives potentialy failure events- Throws:
AbortException
- abort exception
-
doRequest
public ResponseObject doRequest(String url, String method, String requestBody, Properties headers, TaskListener listener)
Setup the secure connection and do the request.- Parameters:
url
- z/OS urlmethod
- PUT/GETrequestBody
- http request's bodyheaders
- http request'd header- Returns:
- ResponseObject
-
-