|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use HttpResponse | |
|---|---|
| co.cask.common.http | HTTP utilities for using HttpURLConnection. |
| Uses of HttpResponse in co.cask.common.http |
|---|
| Subclasses of HttpResponse in co.cask.common.http | |
|---|---|
class |
ObjectResponse<T>
Convenient wrapper of HttpResponse that makes client code cleaner when dealing with java object that can be
de-serialized from response body. |
| Methods in co.cask.common.http that return HttpResponse | |
|---|---|
static HttpResponse |
HttpRequests.execute(HttpRequest request)
Executes an HTTP request with default request configuration. |
static HttpResponse |
HttpRequests.execute(HttpRequest request,
HttpRequestConfig requestConfig)
Executes an HTTP request to the url provided. |
| Methods in co.cask.common.http with parameters of type HttpResponse | ||
|---|---|---|
static
|
ObjectResponse.fromJsonBody(HttpResponse response,
Class<T> typeOfObject)
|
|
static
|
ObjectResponse.fromJsonBody(HttpResponse response,
Class<T> typeOfObject,
com.google.gson.Gson gson)
|
|
static
|
ObjectResponse.fromJsonBody(HttpResponse response,
Type typeOfObject)
|
|
static
|
ObjectResponse.fromJsonBody(HttpResponse response,
Type typeOfObject,
com.google.gson.Gson gson)
|
|
static
|
ObjectResponse.fromJsonBody(HttpResponse response,
com.google.common.reflect.TypeToken<T> typeOfObject)
|
|
static
|
ObjectResponse.fromJsonBody(HttpResponse response,
com.google.common.reflect.TypeToken<T> typeOfObject,
com.google.gson.Gson gson)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||