com.baidubce.services.tablestorage
Class AbstractTableStorageBceClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.tablestorage.AbstractTableStorageBceClient
Direct Known Subclasses:
TableStorageClient

public abstract class AbstractTableStorageBceClient
extends AbstractBceClient

Provides the client for accessing the TableStorage api.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
AbstractTableStorageBceClient(BceClientConfiguration config, boolean isHttpAsyncPutEnabled)
          Constructs a new AbstractTableStorageBceClient client.
 
Method Summary
protected  InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
          Creates and initializes a new request object for the specified resource.
protected  void fillInHeadAndBody(AbstractTableStorageRequest tableStorageRequest, InternalRequest request)
          Fill Header and Body in InternalRequest
 
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

AbstractTableStorageBceClient

public AbstractTableStorageBceClient(BceClientConfiguration config,
                                     boolean isHttpAsyncPutEnabled)
Constructs a new AbstractTableStorageBceClient client.

Method Detail

createRequest

protected InternalRequest createRequest(AbstractBceRequest bceRequest,
                                        HttpMethodName httpMethod,
                                        String... pathVariables)
Creates and initializes a new request object for the specified resource.

Parameters:
bceRequest - The original BCE request created by the user.
httpMethod - The HTTP method to use when sending the request.
pathVariables - The optional variables used in the URI path.
Returns:
A new request object populated with endpoint, resource path and specific parameters to send.

fillInHeadAndBody

protected void fillInHeadAndBody(AbstractTableStorageRequest tableStorageRequest,
                                 InternalRequest request)
Fill Header and Body in InternalRequest

Parameters:
tableStorageRequest - The original BCE request created by the user.
request - A request object ready for callers to populate any additional headers or parameters, and execute.


Copyright © 2020. All rights reserved.