public abstract class AbstractHttpWrapper extends Object implements HttpWrapper
| 构造器和说明 |
|---|
AbstractHttpWrapper(String endpoint,
String path,
String secretId,
String secretKey,
String method) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
addSignature(TreeMap<String,String> param,
String src,
String secretKey)
add Signature to param
|
protected abstract void |
addSignatureMethod(TreeMap<String,String> param)
add Signature Method to param
|
String |
call(String action,
TreeMap<String,String> param) |
protected abstract String |
doRequest(String method,
String url,
String requestParam)
do Request
|
public String call(String action, TreeMap<String,String> param) throws MQClientException, MQServerException
call 在接口中 HttpWrapperMQClientExceptionMQServerExceptionprotected abstract String doRequest(String method, String url, String requestParam)
method - url - requestParam - protected abstract void addSignature(TreeMap<String,String> param, String src, String secretKey) throws NoSuchAlgorithmException, UnsupportedEncodingException, InvalidKeyException
param - src - secretKey - NoSuchAlgorithmExceptionUnsupportedEncodingExceptionInvalidKeyExceptionCopyright © 2020. All rights reserved.