| Modifier and Type | Field and Description |
|---|---|
protected com.assemblade.client.model.Authentication |
authentication |
protected java.lang.String |
baseUrl |
protected org.apache.commons.httpclient.HttpClient |
client |
protected org.codehaus.jackson.map.ObjectMapper |
mapper |
protected org.scribe.services.SignatureService |
signatureService |
protected org.scribe.services.TimestampService |
timestampService |
| Constructor and Description |
|---|
AbstractClient(com.assemblade.client.model.Authentication authentication) |
AbstractClient(java.lang.String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
add(java.lang.String path,
T object,
org.codehaus.jackson.type.TypeReference<T> type) |
protected void |
delete(java.lang.String path) |
protected int |
executeMethod(org.apache.commons.httpclient.HttpMethodBase method) |
protected <T> T |
get(java.lang.String path,
org.codehaus.jackson.type.TypeReference<T> type) |
protected <T> T |
getFromUrl(java.lang.String url,
org.codehaus.jackson.type.TypeReference<T> type) |
protected <T> T |
update(java.lang.String path,
T object,
org.codehaus.jackson.type.TypeReference<T> type) |
protected final org.codehaus.jackson.map.ObjectMapper mapper
protected final org.apache.commons.httpclient.HttpClient client
protected final java.lang.String baseUrl
protected final org.scribe.services.TimestampService timestampService
protected final org.scribe.services.SignatureService signatureService
protected final com.assemblade.client.model.Authentication authentication
public AbstractClient(java.lang.String baseUrl)
public AbstractClient(com.assemblade.client.model.Authentication authentication)
protected <T> T get(java.lang.String path,
org.codehaus.jackson.type.TypeReference<T> type)
throws ClientException
ClientExceptionprotected <T> T getFromUrl(java.lang.String url,
org.codehaus.jackson.type.TypeReference<T> type)
throws ClientException
ClientExceptionprotected <T> T add(java.lang.String path,
T object,
org.codehaus.jackson.type.TypeReference<T> type)
throws ClientException
ClientExceptionprotected <T> T update(java.lang.String path,
T object,
org.codehaus.jackson.type.TypeReference<T> type)
throws ClientException
ClientExceptionprotected void delete(java.lang.String path)
throws ClientException
ClientExceptionprotected int executeMethod(org.apache.commons.httpclient.HttpMethodBase method)
throws CallFailedException
CallFailedException