com.baidubce.services.dumap
Class BaseDuMapClient
java.lang.Object
com.baidubce.AbstractBceClient
com.baidubce.services.dumap.BaseDuMapClient
- Direct Known Subclasses:
- DuMapClient
public class BaseDuMapClient
- extends AbstractBceClient
Base DuMap client which does the operations to call dumap server.
- Author:
- weizhijun
|
Method Summary |
protected BaseDuMapResponse |
callDuMap(String uri,
String appId,
AbstractBceRequest request,
Object requestParams,
HttpMethodName httpMethodName)
|
protected BaseDuMapResponse |
callDuMap(String uri,
String appId,
AbstractBceRequest request,
Object requestParams,
HttpMethodName httpMethodName,
BaseDuMapClient.BodyType bodyType)
|
protected void |
fillInHeadAndBody(AbstractBceRequest bceRequest,
InternalRequest request,
BaseDuMapClient.BodyType bodyType)
|
protected void |
fillParams(InternalRequest request,
Object obj)
|
protected void |
safeAddQueryParam(InternalRequest request,
String key,
String value)
|
protected byte[] |
toForm(AbstractBceRequest bceRequest)
|
protected byte[] |
toJson(AbstractBceRequest bceRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseDuMapClient
public BaseDuMapClient()
- Construct a new base dumap client with the defaul configurations and handlers.
BaseDuMapClient
public BaseDuMapClient(BceClientConfiguration config)
- Construct a new base dumap client with the specified configurations and default handlers.
- Parameters:
config - the client configuration.
BaseDuMapClient
public BaseDuMapClient(String accessKey,
String secretKey)
- Construct a new base dumap client with the specified access key ID and secret key.
- Parameters:
accessKey - Access key ID.secretKey - Secret key.
callDuMap
protected BaseDuMapResponse callDuMap(String uri,
String appId,
AbstractBceRequest request,
Object requestParams,
HttpMethodName httpMethodName)
callDuMap
protected BaseDuMapResponse callDuMap(String uri,
String appId,
AbstractBceRequest request,
Object requestParams,
HttpMethodName httpMethodName,
BaseDuMapClient.BodyType bodyType)
fillInHeadAndBody
protected void fillInHeadAndBody(AbstractBceRequest bceRequest,
InternalRequest request,
BaseDuMapClient.BodyType bodyType)
toJson
protected byte[] toJson(AbstractBceRequest bceRequest)
toForm
protected byte[] toForm(AbstractBceRequest bceRequest)
fillParams
protected void fillParams(InternalRequest request,
Object obj)
safeAddQueryParam
protected void safeAddQueryParam(InternalRequest request,
String key,
String value)
Copyright © 2020. All rights reserved.