Package dev.galasa.zosmf
Interface IZosmfRestApiProcessor
public interface IZosmfRestApiProcessor
-
Method Summary
Modifier and TypeMethodDescription@NotNull IZosmfResponsesendRequest(IZosmf.ZosmfRequestType requestType, String path, Map<String, String> headers, Object body, List<Integer> validStatusCodes, boolean convert) Send zOSMF request
-
Method Details
-
sendRequest
@NotNull @NotNull IZosmfResponse sendRequest(IZosmf.ZosmfRequestType requestType, String path, Map<String, String> headers, Object body, List<Integer> validStatusCodes, boolean convert) throws ZosmfExceptionSend zOSMF request- Parameters:
requestType- as defined byIZosmf.ZosmfRequestTypepath- the zOSMF API pathheaders- the required HTTP headers (e.g. SeeIZosmf.ZosmfCustomHeadersor nullbody- the request body or nullvalidStatusCodes- list HTTP status codes expected from this request. default of HTTP 200 when nullconvert- is a data conversion required. If true, data will be converted between EBCDIC to ISO8859-1. If false, no data conversion will take place.- Returns:
- the response
IZosmfResponse - Throws:
ZosBatchExceptionZosmfException
-