Class FilterTransformingAsyncHttpResponseHandler<ResultT>
java.lang.Object
software.amazon.awssdk.core.internal.http.async.FilterTransformingAsyncHttpResponseHandler<ResultT>
- All Implemented Interfaces:
TransformingAsyncResponseHandler<ResultT>,SdkAsyncHttpResponseHandler
@SdkInternalApi
public abstract class FilterTransformingAsyncHttpResponseHandler<ResultT>
extends Object
implements TransformingAsyncResponseHandler<ResultT>
Decorator class that simply delegates to the wrapped
TransformingAsyncResponseHandler. Useful for intercepting the
desired callback(s) before passing them on to the delegate.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonHeaders(SdkHttpResponse headers) voidonStream(org.reactivestreams.Publisher<ByteBuffer> stream) prepare()Return the future holding the transformed response.
-
Constructor Details
-
FilterTransformingAsyncHttpResponseHandler
public FilterTransformingAsyncHttpResponseHandler(TransformingAsyncResponseHandler<ResultT> delegate)
-
-
Method Details
-
prepare
Description copied from interface:TransformingAsyncResponseHandlerReturn the future holding the transformed response.This method is guaranteed to be called before the request is executed, and before
SdkAsyncHttpResponseHandler.onHeaders(software.amazon.awssdk.http.SdkHttpResponse)is signaled.- Specified by:
preparein interfaceTransformingAsyncResponseHandler<ResultT>- Returns:
- The future holding the transformed response.
-
onHeaders
- Specified by:
onHeadersin interfaceSdkAsyncHttpResponseHandler
-
onStream
- Specified by:
onStreamin interfaceSdkAsyncHttpResponseHandler
-
onError
- Specified by:
onErrorin interfaceSdkAsyncHttpResponseHandler
-