public abstract class FilterTransformingAsyncHttpResponseHandler<ResultT> extends Object implements TransformingAsyncResponseHandler<ResultT>
TransformingAsyncResponseHandler. Useful for intercepting the
desired callback(s) before passing them on to the delegate.| Constructor and Description |
|---|
FilterTransformingAsyncHttpResponseHandler(TransformingAsyncResponseHandler<ResultT> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Throwable error) |
void |
onHeaders(SdkHttpResponse headers) |
void |
onStream(org.reactivestreams.Publisher<ByteBuffer> stream) |
CompletableFuture<ResultT> |
prepare()
Return the future holding the transformed response.
|
public FilterTransformingAsyncHttpResponseHandler(TransformingAsyncResponseHandler<ResultT> delegate)
public CompletableFuture<ResultT> prepare()
TransformingAsyncResponseHandler
This method is guaranteed to be called before the request is executed, and before SdkAsyncHttpResponseHandler.onHeaders(com.ibm.cos.v2.http.SdkHttpResponse) is signaled.
prepare in interface TransformingAsyncResponseHandler<ResultT>public void onHeaders(SdkHttpResponse headers)
onHeaders in interface SdkAsyncHttpResponseHandlerpublic void onStream(org.reactivestreams.Publisher<ByteBuffer> stream)
onStream in interface SdkAsyncHttpResponseHandlerpublic void onError(Throwable error)
onError in interface SdkAsyncHttpResponseHandlerCopyright © 2026. All rights reserved.