public class RequestProcessor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RequestProcessor.TrustAllTrustManager
Trust Manager which trusts all certificates.
|
| Constructor and Description |
|---|
RequestProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.CloseableHttpResponse |
doGet(String url,
String contentType,
String acceptType,
String authHeader)
Execute http get request.
|
String |
doPost(String url,
String contentType,
String acceptType,
String authHeader,
String payload)
Execute http post request
|
public RequestProcessor()
throws APIException
APIExceptionpublic org.apache.http.client.methods.CloseableHttpResponse doGet(String url, String contentType, String acceptType, String authHeader) throws APIException
url - urlcontentType - content typeacceptType - accept typeauthHeader - authorization headerAPIException - Api exception when an error occurredpublic String doPost(String url, String contentType, String acceptType, String authHeader, String payload) throws APIException
url - urlcontentType - content typeacceptType - accept typeauthHeader - authorization headerpayload - post payloadAPIException - Api exception when an error occurredCopyright © 2019 WSO2. All rights reserved.