public interface HttpClient
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
delete(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters)
Create an HTTP DELETE request with parameters
|
HttpRequest |
delete(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters,
String _username,
String _password)
Create an HTTP DELETE request with parameters and with basic authentication
|
HttpBodyRequest |
deleteBody(String _queryUrl,
Map<String,String> _headers,
String _body)
Create an HTTP DELETE request with body
|
HttpBodyRequest |
deleteBody(String _queryUrl,
Map<String,String> _headers,
String _body,
String _username,
String _password)
Create an HTTP DELETE request with body and with basic authentication
|
HttpResponse |
executeAsBinary(HttpRequest request)
Execute a given HttpRequest to get binary response back
|
void |
executeAsBinaryAsync(HttpRequest request,
APICallBack<HttpResponse> callBack)
Execute a given HttpRequest to get binary response back
|
HttpResponse |
executeAsString(HttpRequest request)
Execute a given HttpRequest to get string response back
|
void |
executeAsStringAsync(HttpRequest request,
APICallBack<HttpResponse> callBack)
Execute a given HttpRequest to get string response back
|
HttpRequest |
get(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters)
Create a simple HTTP GET request
|
HttpRequest |
get(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters,
String _username,
String _password)
Create a simple HTTP GET request with basic authentication
|
HttpRequest |
patch(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters)
Create an HTTP PATCH request with parameters
|
HttpRequest |
patch(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters,
String _username,
String _password)
Create an HTTP PATCH request with parameters and with basic authentication
|
HttpBodyRequest |
patchBody(String _queryUrl,
Map<String,String> _headers,
String _body)
Create an HTTP PATCH request with body
|
HttpBodyRequest |
patchBody(String _queryUrl,
Map<String,String> _headers,
String _body,
String _username,
String _password)
Create an HTTP PATCH request with body and with basic authentication
|
HttpRequest |
post(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters)
Create an HTTP POST request with parameters
|
HttpRequest |
post(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters,
String _username,
String _password)
Create an HTTP POST request with parameters and with basic authentication
|
HttpBodyRequest |
postBody(String _queryUrl,
Map<String,String> _headers,
String _body)
Create an HTTP POST request with body
|
HttpBodyRequest |
postBody(String _queryUrl,
Map<String,String> _headers,
String _body,
String _username,
String _password)
Create an HTTP POST request with body and with basic authentication
|
HttpRequest |
put(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters)
Create an HTTP PUT request with parameters
|
HttpRequest |
put(String _queryUrl,
Map<String,String> _headers,
Map<String,Object> _parameters,
String _username,
String _password)
Create an HTTP PUT request with parameters and with basic authentication
|
HttpBodyRequest |
putBody(String _queryUrl,
Map<String,String> _headers,
String _body)
Create an HTTP PUT request with body
|
HttpBodyRequest |
putBody(String _queryUrl,
Map<String,String> _headers,
String _body,
String _username,
String _password)
Create an HTTP PUT request with body and with basic authentication
|
void |
setTimeout(long timeout)
Sets a timeout for HTTP requests
|
void setTimeout(long timeout)
timeout - The timeout in secondsvoid executeAsStringAsync(HttpRequest request, APICallBack<HttpResponse> callBack)
request - The given HttpRequest to executecallBack - Callback after executionvoid executeAsBinaryAsync(HttpRequest request, APICallBack<HttpResponse> callBack)
request - The given HttpRequest to executecallBack - Callback after executionHttpResponse executeAsBinary(HttpRequest request) throws APIException
request - The given HttpRequest to executeAPIExceptionHttpResponse executeAsString(HttpRequest request) throws APIException
request - The given HttpRequest to executeAPIExceptionHttpRequest get(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters, String _username, String _password)
HttpRequest get(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters)
HttpRequest post(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters)
HttpRequest post(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters, String _username, String _password)
HttpBodyRequest postBody(String _queryUrl, Map<String,String> _headers, String _body)
HttpBodyRequest postBody(String _queryUrl, Map<String,String> _headers, String _body, String _username, String _password)
HttpRequest put(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters)
HttpRequest put(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters, String _username, String _password)
HttpBodyRequest putBody(String _queryUrl, Map<String,String> _headers, String _body)
HttpBodyRequest putBody(String _queryUrl, Map<String,String> _headers, String _body, String _username, String _password)
HttpRequest patch(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters)
HttpRequest patch(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters, String _username, String _password)
HttpBodyRequest patchBody(String _queryUrl, Map<String,String> _headers, String _body)
HttpBodyRequest patchBody(String _queryUrl, Map<String,String> _headers, String _body, String _username, String _password)
HttpRequest delete(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters)
HttpRequest delete(String _queryUrl, Map<String,String> _headers, Map<String,Object> _parameters, String _username, String _password)
HttpBodyRequest deleteBody(String _queryUrl, Map<String,String> _headers, String _body)
Copyright © 2017. All rights reserved.