|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.http.StaxResponseHandler<T>
T
- Indicates the type being unmarshalled by this response handler.public class StaxResponseHandler<T>
Default implementation of HttpResponseHandler that handles a successful response from an AWS service and unmarshalls the result using a StAX unmarshaller.
Constructor Summary | |
---|---|
StaxResponseHandler(com.amazonaws.transform.Unmarshaller<T,com.amazonaws.transform.StaxUnmarshallerContext> responseUnmarshaller)
Constructs a new response handler that will use the specified StAX unmarshaller to unmarshall the service response and uses the specified response element path to find the root of the business data in the service's response. |
Method Summary | |
---|---|
AmazonWebServiceResponse<T> |
handle(HttpResponse response)
Accepts an HTTP response object, and returns an object of type T. |
boolean |
needsConnectionLeftOpen()
Since this response handler completely consumes all the data from the underlying HTTP connection during the handle method, we don't need to keep the HTTP connection open. |
protected void |
registerAdditionalMetadataExpressions(com.amazonaws.transform.StaxUnmarshallerContext unmarshallerContext)
Hook for subclasses to override in order to collect additional metadata from service responses. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaxResponseHandler(com.amazonaws.transform.Unmarshaller<T,com.amazonaws.transform.StaxUnmarshallerContext> responseUnmarshaller)
responseUnmarshaller
- The StAX unmarshaller to use on the response.Method Detail |
---|
public AmazonWebServiceResponse<T> handle(HttpResponse response) throws Exception
HttpResponseHandler
handle
in interface HttpResponseHandler<AmazonWebServiceResponse<T>>
response
- The HTTP response to handle, as received from an AWS service.
Exception
- If any problems are encountered handling the response.HttpResponseHandler.handle(com.amazonaws.http.HttpResponse)
protected void registerAdditionalMetadataExpressions(com.amazonaws.transform.StaxUnmarshallerContext unmarshallerContext)
unmarshallerContext
- The unmarshaller context used to process a service's response
data.public boolean needsConnectionLeftOpen()
needsConnectionLeftOpen
in interface HttpResponseHandler<AmazonWebServiceResponse<T>>
HttpResponseHandler.needsConnectionLeftOpen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |