public class ApiInvoker extends Object
Constructor and Description |
---|
ApiInvoker() |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultHeader(String key,
String value) |
static Object |
deserialize(ApiInvokerResponse aiResponse,
String containerType,
Class cls) |
void |
enableDebug() |
static String |
escapeString(String str) |
static ApiInvoker |
getInstance() |
ApiInvokerResponse |
invokeAPI(String host,
String resourceURL,
String method,
Map<String,String> queryParams,
Object body,
Map<String,String> headerParams,
Map<String,String> formParams,
String contentType) |
boolean |
SaveStreamToFile(String FileNameWithPath,
InputStream inputStream) |
static String |
serialize(Object obj) |
static String |
Sign(String unsignedURL,
String privateKey) |
String |
toPathValue(Boolean value) |
String |
toPathValue(Date value) |
String |
toPathValue(Double value) |
String |
toPathValue(Float value) |
String |
toPathValue(Integer value) |
String |
toPathValue(Long value) |
String |
toPathValue(String value)
Overloaded method for returning the path value
For a string value an empty value is returned if the value is null
|
public final String APP_SID
public final String API_KEY
public void enableDebug()
public static ApiInvoker getInstance()
public static Object deserialize(ApiInvokerResponse aiResponse, String containerType, Class cls) throws ApiException
ApiException
public static String serialize(Object obj) throws ApiException
ApiException
public boolean SaveStreamToFile(String FileNameWithPath, InputStream inputStream)
public ApiInvokerResponse invokeAPI(String host, String resourceURL, String method, Map<String,String> queryParams, Object body, Map<String,String> headerParams, Map<String,String> formParams, String contentType) throws ApiException
ApiException
public String toPathValue(String value)
value
- Copyright © 2017. All rights reserved.