public class HttpClientImpl extends Object implements HttpClient
API_BASE_URL, API_KEY, HTTP_METHOD_GET, HTTP_METHOD_POST, JSON_FACTORY| Constructor and Description |
|---|
HttpClientImpl(String apiKey) |
| Modifier and Type | Method and Description |
|---|---|
<R extends Response> |
getForObject(String path,
Class<R> responseClass) |
<R extends Response> |
getForObject(String path,
Request<R> request,
Class<R> responseClass) |
<R extends Response> |
postForObject(String path,
Request<R> request,
Class<R> responseClass) |
public HttpClientImpl(String apiKey)
public <R extends Response> R getForObject(String path, Class<R> responseClass)
getForObject in interface HttpClientpublic <R extends Response> R getForObject(String path, Request<R> request, Class<R> responseClass)
getForObject in interface HttpClientpublic <R extends Response> R postForObject(String path, Request<R> request, Class<R> responseClass)
postForObject in interface HttpClientCopyright © 2017 Metrics Delivered LLC.. All rights reserved.