com.netease.cloud.services.nos.internal
public class ResponseHeaderHandlerChain<T> extends NosXmlResponseHandler<T>
Constructor and Description |
---|
ResponseHeaderHandlerChain(Unmarshaller<T,InputStream> responseUnmarshaller,
HeaderHandler<T>... headerHandlers) |
Modifier and Type | Method and Description |
---|---|
WebServiceResponse<T> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
getResponseHeaders
needsConnectionLeftOpen, parseResponseMetadata, populateObjectMetadata
public ResponseHeaderHandlerChain(Unmarshaller<T,InputStream> responseUnmarshaller, HeaderHandler<T>... headerHandlers)
public WebServiceResponse<T> handle(HttpResponse response) throws Exception
HttpResponseHandler
handle
in interface HttpResponseHandler<WebServiceResponse<T>>
handle
in class NosXmlResponseHandler<T>
response
- The HTTP response to handle, as received from an service.Exception
- If any problems are encountered handling the response.HttpResponseHandler.handle(com.netease.cloud.http.HttpResponse)
Copyright © 2017. All Rights Reserved.