com.netease.cloud.services.nos.internal
public class SimpleDataResponseHandler extends AbstractNosResponseHandler<InputStream>
Constructor and Description |
---|
SimpleDataResponseHandler() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getResponseHeaders()
Returns the headers from the processed response.
|
WebServiceResponse<InputStream> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
boolean |
needsConnectionLeftOpen()
The majority of Nos response handlers read the complete response while
handling it, and don't need to manually manage the underlying HTTP
connection.
|
parseResponseMetadata, populateObjectMetadata
public WebServiceResponse<InputStream> 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.public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen
in interface HttpResponseHandler<WebServiceResponse<InputStream>>
needsConnectionLeftOpen
in class AbstractNosResponseHandler<InputStream>
HttpResponseHandler.needsConnectionLeftOpen()
Copyright © 2017. All Rights Reserved.