Package dev.galasa.zosmf
Interface IZosmfRestApiProcessor
public interface IZosmfRestApiProcessor
-
Method Summary
Modifier and TypeMethodDescription@NotNull IZosmfResponse
sendRequest
(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.ZosmfRequestType
path
- the zOSMF API pathheaders
- the required HTTP headers (e.g. SeeIZosmf.ZosmfCustomHeaders
or 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:
ZosBatchException
ZosmfException
-