Package dev.galasa.zosrseapi
Interface IRseapiRestApiProcessor
public interface IRseapiRestApiProcessor
-
Method Summary
Modifier and TypeMethodDescription@NotNull IRseapiResponse
sendRequest
(IRseapi.RseapiRequestType requestType, String path, Map<String, String> headers, Object body, List<Integer> validStatusCodes, boolean convert) Send RSE API request
-
Method Details
-
sendRequest
@NotNull @NotNull IRseapiResponse sendRequest(IRseapi.RseapiRequestType requestType, String path, Map<String, String> headers, Object body, List<Integer> validStatusCodes, boolean convert) throws RseapiExceptionSend RSE API request- Parameters:
requestType
- as defined byIRseapi.RseapiRequestType
path
- the RSE API API pathheaders
- the required HTTP headers 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
IRseapiResponse
- Throws:
RseapiException
-