com.baidubce.services.dumap
Class BaseDuMapClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by 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

Nested Class Summary
static class BaseDuMapClient.BodyType
           
 
Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
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.
 
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 com.baidubce.AbstractBceClient
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.