public class HttpEntityHandler extends Object
| Constructor and Description |
|---|
HttpEntityHandler() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(HttpResponse response)
Closes an HttpResponse ignoring a possible IOException
|
static <T> T |
handle(HttpResponse response,
Class<T> returnType,
ExecutionOptions<T> options) |
static <T> T |
handle(HttpResponse response,
Class<T> returnType,
ExecutionOptions<T> options,
boolean requiresVoidBodyHandling) |
static int |
statusAndClose(HttpResponse response)
Returns the status code and closes the response
|
public static <T> T handle(HttpResponse response, Class<T> returnType, ExecutionOptions<T> options)
public static <T> T handle(HttpResponse response, Class<T> returnType, ExecutionOptions<T> options, boolean requiresVoidBodyHandling)
public static void closeQuietly(HttpResponse response)
response - the http responsepublic static int statusAndClose(HttpResponse response)
response - the http responseCopyright © 2017. All rights reserved.