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 |
postWithResponse(String path,
T value,
Class<T> type) |
<T> T |
postWithResponse(String path,
T value,
Class<T> type,
int responseCode) |
<T> T |
putWithResponse(String path,
T value,
Class<T> type) |
<T> T |
putWithResponse(String path,
T value,
Class<T> type,
int responseCode) |
public AproxClientHttp(String baseUrl)
public AproxClientHttp(String baseUrl, org.commonjava.aprox.model.core.io.AproxObjectMapper mapper)
public void connect()
public <T> T get(String path, Class<T> type) throws AproxClientException
AproxClientExceptionpublic <T> T putWithResponse(String path, T value, Class<T> type) throws AproxClientException
AproxClientExceptionpublic <T> T putWithResponse(String path, T value, Class<T> type, 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 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
AproxClientExceptionCopyright © 2014. All Rights Reserved.