public class OneAPIBaseClientImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CHARSET |
protected static String |
JSON_CONTENT_TYPE |
protected static org.slf4j.Logger |
LOGGER |
protected static String |
URL_ENCODED_CONTENT_TYPE |
| Modifier | Constructor and Description |
|---|---|
protected |
OneAPIBaseClientImpl(Configuration configuration)
Initialize OneAPIClientBase
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
convertJSONToObject(byte[] jsonBytes,
Class<T> clazz)
Convert json string to specific object
|
protected <T> T |
convertJSONToObject(byte[] jsonBytes,
Class<T> clazz,
String rootElement)
Convert json string to specific object
|
protected String |
encodeURLParam(String param)
Encode URL parameter
|
protected void |
executeMethod(RequestData requestData)
Execute method and validate response
|
protected <T> T |
executeMethod(RequestData requestData,
Class<T> clazz)
Execute method and deserialize response json
|
protected <T> void |
executeMethodAsync(RequestData requestData,
Class<T> clazz,
ResponseListener<T> responseListener)
Execute method asynchronously and deserialize response json
|
protected Configuration |
getConfiguration()
Get Configuration object
|
protected String |
getIdFromResourceUrl(String resourceUrl)
Extract Id from resource url
|
protected static final org.slf4j.Logger LOGGER
protected static final String CHARSET
protected static final String URL_ENCODED_CONTENT_TYPE
protected static final String JSON_CONTENT_TYPE
protected OneAPIBaseClientImpl(Configuration configuration)
protected Configuration getConfiguration()
protected <T> T executeMethod(RequestData requestData, Class<T> clazz)
protected void executeMethod(RequestData requestData)
protected <T> void executeMethodAsync(RequestData requestData, Class<T> clazz, ResponseListener<T> responseListener)
protected <T> T convertJSONToObject(byte[] jsonBytes,
Class<T> clazz)
protected <T> T convertJSONToObject(byte[] jsonBytes,
Class<T> clazz,
String rootElement)
protected String getIdFromResourceUrl(String resourceUrl)
Copyright © 2014. All rights reserved.