public class BaseDuMapClient extends AbstractBceClient
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseDuMapClient.BodyType |
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
BaseDuMapClient()
Construct a new base dumap client with the defaul configurations and handlers.
|
BaseDuMapClient(BceClientConfiguration config)
Construct a new base dumap client with the specified configurations and default handlers.
|
BaseDuMapClient(String accessKey,
String secretKey)
Construct a new base dumap client with the specified access key ID and secret key.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic BaseDuMapClient()
public BaseDuMapClient(BceClientConfiguration config)
config - the client configuration.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 byte[] toJson(AbstractBceRequest bceRequest)
protected byte[] toForm(AbstractBceRequest bceRequest)
protected void fillParams(InternalRequest request, Object obj)
protected void safeAddQueryParam(InternalRequest request, String key, String value)
Copyright © 2024. All rights reserved.