public class AproxClientHttp extends Object
| Constructor and Description |
|---|
AproxClientHttp(String baseUrl) |
AproxClientHttp(String baseUrl,
org.commonjava.aprox.model.core.io.AproxObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
void |
delete(String path) |
void |
delete(String path,
int responseCode) |
boolean |
exists(String path) |
boolean |
exists(String path,
int responseCode) |
<T> T |
get(String path,
Class<T> type) |
<T> T |
get(String path,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
String |
getBaseUrl() |
org.apache.http.client.methods.CloseableHttpResponse |
getRaw(String path) |
org.apache.http.client.methods.CloseableHttpResponse |
getRaw(String path,
Map<String,String> headers) |
Map<String,String> |
head(String path) |
Map<String,String> |
head(String path,
int responseCode) |
<T> T |
postWithResponse(String path,
T value,
Class<T> type) |
<T> T |
postWithResponse(String path,
T value,
Class<T> type,
int responseCode) |
<T> T |
postWithResponse(String path,
T value,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
<T> T |
postWithResponse(String path,
T value,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef,
int responseCode) |
boolean |
put(String path,
Object value) |
boolean |
put(String path,
Object value,
int responseCode) |
void |
putWithStream(String path,
InputStream stream) |
void |
putWithStream(String path,
InputStream stream,
int responseCode) |
public AproxClientHttp(String baseUrl)
public AproxClientHttp(String baseUrl, org.commonjava.aprox.model.core.io.AproxObjectMapper mapper)
public void connect()
public Map<String,String> head(String path) throws AproxClientException
AproxClientExceptionpublic Map<String,String> head(String path, int responseCode) throws AproxClientException
AproxClientExceptionpublic <T> T get(String path, Class<T> type) throws AproxClientException
AproxClientExceptionpublic <T> T get(String path, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws AproxClientException
AproxClientExceptionpublic org.apache.http.client.methods.CloseableHttpResponse getRaw(String path) throws AproxClientException
AproxClientExceptionpublic org.apache.http.client.methods.CloseableHttpResponse getRaw(String path, Map<String,String> headers) throws AproxClientException
AproxClientExceptionpublic void putWithStream(String path, InputStream stream) throws AproxClientException
AproxClientExceptionpublic void putWithStream(String path, InputStream stream, int responseCode) throws AproxClientException
AproxClientExceptionpublic boolean put(String path, Object value) throws AproxClientException
AproxClientExceptionpublic boolean put(String path, Object value, int responseCode) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, T value, Class<T> type) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, T value, Class<T> type, int responseCode) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, T value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, T value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int responseCode) throws AproxClientException
AproxClientExceptionpublic void close()
public void delete(String path) throws AproxClientException
AproxClientExceptionpublic void delete(String path, int responseCode) throws AproxClientException
AproxClientExceptionpublic boolean exists(String path) throws AproxClientException
AproxClientExceptionpublic boolean exists(String path, int responseCode) throws AproxClientException
AproxClientExceptionpublic String getBaseUrl()
Copyright © 2015. All Rights Reserved.