public class JCLService extends Object
| Constructor and Description |
|---|
JCLService(boolean debug) |
| Modifier and Type | Method and 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.
|
public void login(String host, String port, String user, String pw, TaskListener listener) throws AbortException
host - z/OS host nameport - port numberuser - user namepw - user passwordlistener - task listener that receives potentialy failure eventsAbortException - abort exceptionpublic ResponseObject doRequest(String url, String method, String requestBody, Properties headers, TaskListener listener)
url - z/OS urlmethod - PUT/GETrequestBody - http request's bodyheaders - http request'd headerCopyright © 2016–2022. All rights reserved.