public final class S3CrtResponseHandlerAdapter extends Object implements software.amazon.awssdk.crt.s3.S3MetaRequestResponseHandler
SdkAsyncHttpResponseHandler to S3MetaRequestResponseHandler.| Constructor and Description |
|---|
S3CrtResponseHandlerAdapter(CompletableFuture<Void> executeFuture,
SdkAsyncHttpResponseHandler responseHandler,
PublisherListener<software.amazon.awssdk.crt.s3.S3MetaRequestProgress> progressListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRequest() |
void |
metaRequest(software.amazon.awssdk.crt.s3.S3MetaRequest s3MetaRequest) |
void |
onFinished(software.amazon.awssdk.crt.s3.S3FinishedResponseContext context) |
void |
onProgress(software.amazon.awssdk.crt.s3.S3MetaRequestProgress progress) |
int |
onResponseBody(ByteBuffer bodyBytesIn,
long objectRangeStart,
long objectRangeEnd) |
void |
onResponseHeaders(int statusCode,
software.amazon.awssdk.crt.http.HttpHeader[] headers) |
public S3CrtResponseHandlerAdapter(CompletableFuture<Void> executeFuture, SdkAsyncHttpResponseHandler responseHandler, PublisherListener<software.amazon.awssdk.crt.s3.S3MetaRequestProgress> progressListener)
public void onResponseHeaders(int statusCode,
software.amazon.awssdk.crt.http.HttpHeader[] headers)
onResponseHeaders in interface software.amazon.awssdk.crt.s3.S3MetaRequestResponseHandlerpublic int onResponseBody(ByteBuffer bodyBytesIn, long objectRangeStart, long objectRangeEnd)
onResponseBody in interface software.amazon.awssdk.crt.s3.S3MetaRequestResponseHandlerpublic void onFinished(software.amazon.awssdk.crt.s3.S3FinishedResponseContext context)
onFinished in interface software.amazon.awssdk.crt.s3.S3MetaRequestResponseHandlerpublic void cancelRequest()
public void metaRequest(software.amazon.awssdk.crt.s3.S3MetaRequest s3MetaRequest)
public void onProgress(software.amazon.awssdk.crt.s3.S3MetaRequestProgress progress)
onProgress in interface software.amazon.awssdk.crt.s3.S3MetaRequestResponseHandlerCopyright © 2023. All rights reserved.