com.baidubce.services.lps
Class BaseLpsClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.lps.BaseLpsClient
Direct Known Subclasses:
LpsClient, LpsRouteClient

public class BaseLpsClient
extends AbstractBceClient

Base lps client which is responsible for base request creation operation and other common operations.

Author:
weizhijun

Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
protected BaseLpsClient()
          Construct a default base LPS client.
protected BaseLpsClient(BceClientConfiguration config)
          Construct a base lps client using the specified client configuration options (ex: max retry attempts, proxy settings, etc), and request metric collector.
protected BaseLpsClient(String accessKey, String secretKey)
          Construct a base lps client with access key id and secret key.
 
Method Summary
protected  InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String path)
           
 
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

BaseLpsClient

protected BaseLpsClient()
Construct a default base LPS client.


BaseLpsClient

protected BaseLpsClient(String accessKey,
                        String secretKey)
Construct a base lps client with access key id and secret key.

Parameters:
accessKey - Access key id.
secretKey - Secret key.

BaseLpsClient

protected BaseLpsClient(BceClientConfiguration config)
Construct a base lps client using the specified client configuration options (ex: max retry attempts, proxy settings, etc), and request metric collector.

Parameters:
config - Configuration options specifying how this client will communicate with BCE (ex: proxy settings, retry count, etc.).
Method Detail

createRequest

protected InternalRequest createRequest(AbstractBceRequest bceRequest,
                                        HttpMethodName httpMethod,
                                        String path)


Copyright © 2020. All rights reserved.