public class ApacheHttpClientDelegate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ApacheHttpClientDelegate.BodyAndStatusResponseHandler |
static class |
ApacheHttpClientDelegate.BodyResponseHandler |
static class |
ApacheHttpClientDelegate.HttpBodyAndStatus |
static class |
ApacheHttpClientDelegate.StatusCodeCheckerResponseHandler<T> |
static class |
ApacheHttpClientDelegate.StatusCodeResponseHandler |
| Constructor and Description |
|---|
ApacheHttpClientDelegate(org.apache.http.impl.client.CloseableHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
int |
delete(String url,
int... statusCodes) |
<T> T |
delete(String url,
org.apache.http.client.ResponseHandler<T> responseHandler,
int... statusCodes) |
String |
get(String url,
int... statusCodes) |
<T> T |
get(String url,
org.apache.http.client.ResponseHandler<T> responseHandler,
int... statusCodes) |
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
int |
post(String url,
int... statusCodes) |
<T> T |
post(String url,
Object body,
Map<String,String> headers,
org.apache.http.client.ResponseHandler<T> responseHandler,
int... statusCodes) |
<T> T |
post(String url,
Object body,
org.apache.http.client.ResponseHandler<T> responseHandler,
int... statusCodes) |
int |
put(String url,
Object body,
int... statusCodes) |
public ApacheHttpClientDelegate(org.apache.http.impl.client.CloseableHttpClient httpClient)
public int delete(String url, int... statusCodes) throws IOException
IOExceptionpublic <T> T delete(String url, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
IOExceptionpublic String get(String url, int... statusCodes) throws IOException
IOExceptionpublic <T> T get(String url, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
IOExceptionpublic <T> T post(String url, Object body, Map<String,String> headers, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
IOExceptionpublic <T> T post(String url, Object body, org.apache.http.client.ResponseHandler<T> responseHandler, int... statusCodes) throws IOException
IOExceptionpublic int post(String url, int... statusCodes) throws IOException
IOExceptionpublic int put(String url, Object body, int... statusCodes) throws IOException
IOExceptionpublic org.apache.http.impl.client.CloseableHttpClient getHttpClient()
Copyright © 2016. All Rights Reserved.