public class ApiInvoker extends Object
| 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) |
void |
enableDebug() |
String |
escapeString(String str) |
static ApiInvoker |
getInstance() |
String |
invokeAPI(String host,
String path,
String method,
Map<String,String> queryParams,
Object body,
Map<String,String> headerParams,
Map<String,String> formParams,
String contentType) |
static String |
serialize(Object obj) |
public void enableDebug()
public static ApiInvoker getInstance()
public static Object deserialize(String json, String containerType, Class cls) throws ApiException
ApiExceptionpublic static String serialize(Object obj) throws ApiException
ApiExceptionCopyright © 2015. All rights reserved.