public class AproxClientHttp extends Object implements Closeable
| 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 |
connect(org.apache.http.conn.HttpClientConnectionManager connectionManager) |
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() |
HttpResources |
getRaw(String path) |
HttpResources |
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,
Object value,
Class<T> type) |
<T> T |
postWithResponse(String path,
Object value,
Class<T> type,
int responseCode) |
<T> T |
postWithResponse(String path,
Object value,
com.fasterxml.jackson.core.type.TypeReference<T> typeRef) |
<T> T |
postWithResponse(String path,
Object 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(org.apache.http.conn.HttpClientConnectionManager connectionManager)
throws AproxClientException
AproxClientExceptionpublic 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 HttpResources getRaw(String path) throws AproxClientException
AproxClientExceptionpublic HttpResources 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, Object value, Class<T> type) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, Object value, Class<T> type, int responseCode) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, Object value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef) throws AproxClientException
AproxClientExceptionpublic <T> T postWithResponse(String path, Object value, com.fasterxml.jackson.core.type.TypeReference<T> typeRef, int responseCode) throws AproxClientException
AproxClientExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic 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.