public class ApiInvoker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiInvoker.CustomDateDeserializer |
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
static String |
PACKAGE_NAME |
static String |
PACKAGE_VERSION |
| Constructor and Description |
|---|
ApiInvoker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultHeader(String key,
String value) |
static Object |
deserialize(String json,
String containerType,
Class cls) |
static String |
encodeURI(String uri) |
static String |
encodeURIComponent(String str) |
String |
escapeString(String str) |
static ApiInvoker |
getInstance() |
<T> T |
invokeAPI(String host,
String path,
String method,
Map<String,String> queryParams,
Object body,
Map<String,String> headerParams,
Class<T> returnType) |
static String |
serialize(Object obj) |
void |
setDebug(boolean flag) |
void |
setRequestSigner(RequestSigner signer) |
public static final String DATE_FORMAT
public static final String PACKAGE_NAME
public static final String PACKAGE_VERSION
public static ApiInvoker getInstance()
public void setDebug(boolean flag)
public void setRequestSigner(RequestSigner signer)
public static Object deserialize(String json, String containerType, Class cls) throws ApiException
ApiExceptionpublic static String serialize(Object obj) throws ApiException
ApiExceptionCopyright © 2014 GroupDocs. All Rights Reserved.