com.netease.cloud.services.nos.internal
public class NosObjectResponseHandler extends AbstractNosResponseHandler<NOSObject>
Constructor and Description |
---|
NosObjectResponseHandler() |
Modifier and Type | Method and Description |
---|---|
WebServiceResponse<NOSObject> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
boolean |
needsConnectionLeftOpen()
Returns true, since the entire response isn't read while this response
handler handles the response.
|
parseResponseMetadata, populateObjectMetadata
public WebServiceResponse<NOSObject> 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)
public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen
in interface HttpResponseHandler<WebServiceResponse<NOSObject>>
needsConnectionLeftOpen
in class AbstractNosResponseHandler<NOSObject>
HttpResponseHandler.needsConnectionLeftOpen()
Copyright © 2017. All Rights Reserved.