public class Client extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_NAME |
static String |
SEPARATOR |
static String |
URL_ENCODING |
| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
static String |
arrayToStringWithSpecifiedStyle(Object array,
String prefix,
String style)
Parse array into a string with specified style
|
static void |
convert(com.aliyun.tea.TeaModel body,
com.aliyun.tea.TeaModel content)
Convert all params of body other than type of readable into content
|
protected static String |
getCanonicalizedHeaders(Map<String,String> headers) |
protected static String |
getCanonicalizedResource(String pathname,
Map<String,String> query) |
static String |
getEndpoint(String endpoint,
boolean useAccelerate,
String endpointType) |
static String |
getROASignature(String stringToSign,
String secret)
Get signature according to stringToSign, secret
|
static String |
getRPCSignature(Map<String,String> signedParams,
String method,
String secret)
Get signature according to signedParams, method and secret
|
static String |
getStringToSign(com.aliyun.tea.TeaRequest request)
Get the string to be signed according to request
|
static String |
getTimestamp()
Get timestamp
|
static Map<String,Object> |
parseToMap(Object o) |
static String |
percentEncode(String value) |
static Map<String,String> |
query(Map<String,?> filter)
Parse filter into a object which's type is map[string]string
|
static String |
toForm(Map<String,?> filter)
Parse filter into a form string
|
public static final String SEPARATOR
public static final String URL_ENCODING
public static final String ALGORITHM_NAME
public static void convert(com.aliyun.tea.TeaModel body,
com.aliyun.tea.TeaModel content)
throws Exception
body - body Modelcontent - content ModelExceptionpublic static String getStringToSign(com.aliyun.tea.TeaRequest request) throws Exception
request - which contains signed messagesExceptionprotected static String getCanonicalizedResource(String pathname, Map<String,String> query)
public static String getROASignature(String stringToSign, String secret) throws Exception
stringToSign - the signed stringsecret - accesskey secretExceptionpublic static String toForm(Map<String,?> filter) throws Exception
filter - objectExceptionpublic static String getTimestamp() throws Exception
Exceptionpublic static Map<String,String> query(Map<String,?> filter) throws Exception
filter - query paramExceptionpublic static String getRPCSignature(Map<String,String> signedParams, String method, String secret) throws Exception
signedParams - params which need to be signedmethod - http method e.g. GETsecret - AccessKeySecretExceptionpublic static String percentEncode(String value) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String arrayToStringWithSpecifiedStyle(Object array, String prefix, String style) throws Exception
array - the arrayprefix - the prefix stringExceptionCopyright © 2020. All rights reserved.