public class JsonTarget extends Object
| Constructor and Description |
|---|
JsonTarget(org.apache.http.impl.client.CloseableHttpClient httpClient,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
JsonTarget |
debug(Level level) |
<T> T |
delete(Class<T> responseClass) |
<T> T |
get(Class<T> responseClass) |
JsonTarget |
header(String key,
String value) |
<T> T |
patch(org.apache.http.HttpEntity entity,
Class<T> responseClass) |
JsonTarget |
path(String path) |
<T> T |
post(org.apache.http.HttpEntity entity,
Class<T> responseClass) |
<T> T |
put(org.apache.http.HttpEntity entity,
Class<T> responseClass) |
JsonTarget |
query(String key,
String value) |
public JsonTarget(org.apache.http.impl.client.CloseableHttpClient httpClient,
URI uri)
public JsonTarget path(String path) throws URISyntaxException
URISyntaxExceptionpublic JsonTarget header(String key, String value)
public JsonTarget query(String key, String value)
public JsonTarget debug(Level level)
public <T> T get(Class<T> responseClass) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic <T> T put(org.apache.http.HttpEntity entity,
Class<T> responseClass)
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic <T> T post(org.apache.http.HttpEntity entity,
Class<T> responseClass)
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic <T> T patch(org.apache.http.HttpEntity entity,
Class<T> responseClass)
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic <T> T delete(Class<T> responseClass) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionCopyright © 2017. All rights reserved.