Package com.bmc.ims
Class JCLService
java.lang.Object
com.bmc.ims.JCLService
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoRequest(String url, String method, String requestBody, Properties headers, TaskListener listener) Setup the secure connection and do the request.voidCall 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.
-
Constructor Details
-
JCLService
public JCLService(boolean debug)
-
-
Method Details
-
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
-