com.baidubce.services.ruleengine
Class AbstractRuleEngineBceClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.ruleengine.AbstractRuleEngineBceClient
Direct Known Subclasses:
RuleEngineDataClient

public abstract class AbstractRuleEngineBceClient
extends AbstractBceClient

sub-class for AbstractBceClient, provide gzip method Created by huangjiatian on 2019/03/07.


Field Summary
protected static HttpResponseHandler[] HANDLERS
          Responsible for handling HttpResponse from all rule engine service calls.
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
AbstractRuleEngineBceClient(BceClientConfiguration configuration, HttpResponseHandler[] responseHandlers)
           
 
Method Summary
protected  InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
           
protected  InternalRequest createRequest(URI endpoint, AbstractBceRequest bceRequest, HttpMethodName httpMethod, SignOptions signOptions, String... pathVariables)
           
protected  void fillInHeadAndBody(AbstractBceRequest bceRequest, InternalRequest request)
           
protected  void fillInHeadAndBodyForGzip(InternalRequest request, byte[] bytes)
           
protected  Date getTimestampInThisMinute()
           
protected  byte[] toGzipBytes(FeedMessageRequest request)
           
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
 

Field Detail

HANDLERS

protected static final HttpResponseHandler[] HANDLERS
Responsible for handling HttpResponse from all rule engine service calls.

Constructor Detail

AbstractRuleEngineBceClient

public AbstractRuleEngineBceClient(BceClientConfiguration configuration,
                                   HttpResponseHandler[] responseHandlers)
Method Detail

toGzipBytes

protected byte[] toGzipBytes(FeedMessageRequest request)

createRequest

protected InternalRequest createRequest(AbstractBceRequest bceRequest,
                                        HttpMethodName httpMethod,
                                        String... pathVariables)

createRequest

protected InternalRequest createRequest(URI endpoint,
                                        AbstractBceRequest bceRequest,
                                        HttpMethodName httpMethod,
                                        SignOptions signOptions,
                                        String... pathVariables)

getTimestampInThisMinute

protected Date getTimestampInThisMinute()

fillInHeadAndBody

protected void fillInHeadAndBody(AbstractBceRequest bceRequest,
                                 InternalRequest request)

fillInHeadAndBodyForGzip

protected void fillInHeadAndBodyForGzip(InternalRequest request,
                                        byte[] bytes)

toJson

protected byte[] toJson(AbstractBceRequest bceRequest)


Copyright © 2020. All rights reserved.