public abstract class AbstractClient extends Object implements RESTClient
| Constructor and Description |
|---|
AbstractClient() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.http.client.methods.HttpUriRequest |
buildtHttpRequest(String url,
String requestBody,
Map<String,String> headers) |
ClientResponse |
send(String url,
String requestBody,
Map<String,?> params,
Map<String,String> headers)
Makes a HTTP request to the given URL using the given request body,
parameters and HTTP headers.
|
protected abstract org.apache.http.client.methods.HttpUriRequest buildtHttpRequest(String url, String requestBody, Map<String,String> headers)
public ClientResponse send(String url, String requestBody, Map<String,?> params, Map<String,String> headers)
send in interface RESTClienturl - URL where the request is sentparams - request parametersrequestBody - request bodyheaders - HTTP headers to be added to the requestCopyright © 2014–2017. All rights reserved.