com.baidubce.services.bvw
Class BvwMetadataResponseHandler

java.lang.Object
  extended by com.baidubce.services.bvw.BvwMetadataResponseHandler
All Implemented Interfaces:
HttpResponseHandler

public class BvwMetadataResponseHandler
extends Object
implements HttpResponseHandler

The bvw metadata response handler.


Constructor Summary
BvwMetadataResponseHandler()
           
 
Method Summary
 boolean handle(BceHttpResponse httpResponse, AbstractBceResponse response)
          Bvw Implementation of HttpResponseHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BvwMetadataResponseHandler

public BvwMetadataResponseHandler()
Method Detail

handle

public boolean handle(BceHttpResponse httpResponse,
                      AbstractBceResponse response)
               throws Exception
Bvw Implementation of HttpResponseHandler. When server return a empty body, wo should set content-length to 0 and transfer-encoding to null.

Specified by:
handle in interface HttpResponseHandler
Parameters:
httpResponse - The http response
response - The bce response
Returns:
If there is a next handle
Throws:
Exception - JsonMappingException or JsonParseException


Copyright © 2020. All rights reserved.