com.netease.cloud.services.nos.internal
public class NosXmlResponseHandler<T> extends AbstractNosResponseHandler<T>
Constructor and Description |
---|
NosXmlResponseHandler(Unmarshaller<T,InputStream> responseUnmarshaller)
Constructs a new Nos response handler that will use the specified SAX
unmarshaller to turn the response into an object.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getResponseHeaders()
Returns the headers from the processed response.
|
WebServiceResponse<T> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
needsConnectionLeftOpen, parseResponseMetadata, populateObjectMetadata
public NosXmlResponseHandler(Unmarshaller<T,InputStream> responseUnmarshaller)
responseUnmarshaller
- The SAX unmarshaller to use on the response from Nos.public WebServiceResponse<T> handle(HttpResponse response) throws Exception
HttpResponseHandler
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.