| Package | Description |
|---|---|
| co.cask.common.http |
HTTP utilities for using
HttpURLConnection. |
| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ObjectResponse<T> |
ObjectResponse.fromJsonBody(HttpResponse response,
Class<T> typeOfObject) |
static <T> ObjectResponse<T> |
ObjectResponse.fromJsonBody(HttpResponse response,
Class<T> typeOfObject,
com.google.gson.Gson gson) |
static <T> ObjectResponse<T> |
ObjectResponse.fromJsonBody(HttpResponse response,
Type typeOfObject) |
static <T> ObjectResponse<T> |
ObjectResponse.fromJsonBody(HttpResponse response,
Type typeOfObject,
com.google.gson.Gson gson) |
static <T> ObjectResponse<T> |
ObjectResponse.fromJsonBody(HttpResponse response,
com.google.common.reflect.TypeToken<T> typeOfObject) |
static <T> ObjectResponse<T> |
ObjectResponse.fromJsonBody(HttpResponse response,
com.google.common.reflect.TypeToken<T> typeOfObject,
com.google.gson.Gson gson) |
Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.