public class COSXmlResponseHandler<T> extends AbstractCosResponseHandler<T>
构造器和说明 |
---|
COSXmlResponseHandler(Unmarshaller<T,InputStream> responseUnmarshaller)
Constructs a new COS response handler that will use the specified SAX
unmarshaller to turn the response into an object.
|
限定符和类型 | 方法和说明 |
---|---|
Map<String,String> |
getResponseHeaders()
Returns the headers from the processed response.
|
CosServiceResponse<T> |
handle(CosHttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
needsConnectionLeftOpen, parseResponseMetadata, populateObjectMetadata
public COSXmlResponseHandler(Unmarshaller<T,InputStream> responseUnmarshaller)
responseUnmarshaller
- The SAX unmarshaller to use on the response from COS.public CosServiceResponse<T> handle(CosHttpResponse response) throws Exception
HttpResponseHandler
response
- The HTTP response to handle, as received from an COS service.Exception
- If any problems are encountered handling the response.Copyright © 2020. All rights reserved.