Package org.smallmind.web.jersey.proxy
Class JsonTarget
- java.lang.Object
-
- org.smallmind.web.jersey.proxy.JsonTarget
-
public class JsonTarget extends Object
-
-
Constructor Summary
Constructors Constructor Description JsonTarget(org.apache.http.impl.client.CloseableHttpClient httpClient, URI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonTargetdebug(Level level)<T> Tdelete(Class<T> responseClass)<T> Tget(Class<T> responseClass)JsonTargetheader(String key, String value)<T> Tpatch(org.apache.http.HttpEntity entity, Class<T> responseClass)JsonTargetpath(String path)<T> Tpost(org.apache.http.HttpEntity entity, Class<T> responseClass)<T> Tput(org.apache.http.HttpEntity entity, Class<T> responseClass)JsonTargetquery(String key, String value)
-
-
-
Constructor Detail
-
JsonTarget
public JsonTarget(org.apache.http.impl.client.CloseableHttpClient httpClient, URI uri)
-
-
Method Detail
-
path
public JsonTarget path(String path) throws URISyntaxException
- Throws:
URISyntaxException
-
header
public JsonTarget header(String key, String value)
-
query
public JsonTarget query(String key, String value)
-
debug
public JsonTarget debug(Level level)
-
get
public <T> T get(Class<T> responseClass) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
put
public <T> T put(org.apache.http.HttpEntity entity, Class<T> responseClass) throws IOException, URISyntaxException- Throws:
IOExceptionURISyntaxException
-
post
public <T> T post(org.apache.http.HttpEntity entity, Class<T> responseClass) throws IOException, URISyntaxException- Throws:
IOExceptionURISyntaxException
-
patch
public <T> T patch(org.apache.http.HttpEntity entity, Class<T> responseClass) throws IOException, URISyntaxException- Throws:
IOExceptionURISyntaxException
-
delete
public <T> T delete(Class<T> responseClass) throws IOException, URISyntaxException
- Throws:
IOExceptionURISyntaxException
-
-