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... responseCodes) |
void |
deleteWithChangelog(String path,
String changelog) |
void |
deleteWithChangelog(String path,
String changelog,
int... responseCodes) |
boolean |
exists(String path) |
boolean |
exists(String path,
int... responseCodes) |
<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... responseCodes) |
<T> T |
postWithResponse(String path,
Object value,
Class<T> type) |
<T> T |
postWithResponse(String path,
Object value,
Class<T> type,
int... responseCodes) |
<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... responseCodes) |
boolean |
put(String path,
Object value) |
boolean |
put(String path,
Object value,
int... responseCodes) |
void |
putWithStream(String path,
InputStream stream) |
void |
putWithStream(String path,
InputStream stream,
int... responseCodes) |
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... responseCodes) 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... responseCodes) throws AproxClientException
AproxClientExceptionpublic boolean put(String path, Object value) throws AproxClientException
AproxClientExceptionpublic boolean put(String path, Object value, int... responseCodes) 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... responseCodes) 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... responseCodes) throws AproxClientException
AproxClientExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void delete(String path) throws AproxClientException
AproxClientExceptionpublic void delete(String path, int... responseCodes) throws AproxClientException
AproxClientExceptionpublic void deleteWithChangelog(String path, String changelog) throws AproxClientException
AproxClientExceptionpublic void deleteWithChangelog(String path, String changelog, int... responseCodes) throws AproxClientException
AproxClientExceptionpublic boolean exists(String path) throws AproxClientException
AproxClientExceptionpublic boolean exists(String path, int... responseCodes) throws AproxClientException
AproxClientExceptionpublic String getBaseUrl()
Copyright © 2015. All Rights Reserved.