Class ChecksumCalculatingAsyncRequestBody
- java.lang.Object
-
- software.amazon.awssdk.core.internal.async.ChecksumCalculatingAsyncRequestBody
-
- All Implemented Interfaces:
org.reactivestreams.Publisher<ByteBuffer>,AsyncRequestBody,SdkPublisher<ByteBuffer>
@SdkInternalApi public class ChecksumCalculatingAsyncRequestBody extends Object implements AsyncRequestBody
Wrapper class to wrap an AsyncRequestBody. This will read the data in chunk format and append Checksum as trailer at the end. TODO(sra-identity-and-auth): Checksum calculating logic for async client is still here and should be in "http-auth-aws", more specifically, AwsChunkedV4PayloadSigner#signAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceChecksumCalculatingAsyncRequestBody.Builderstatic classChecksumCalculatingAsyncRequestBody.OnNextGuaranteedSubscriber-
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
AsyncRequestBody.BodyType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChecksumCalculatingAsyncRequestBody.Builderbuilder()Optional<Long>contentLength()StringcontentType()voidsubscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.async.AsyncRequestBody
body, split, split, splitCloseable, splitCloseable
-
Methods inherited from interface software.amazon.awssdk.core.async.SdkPublisher
addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
-
-
-
-
Method Detail
-
builder
public static ChecksumCalculatingAsyncRequestBody.Builder builder()
- Returns:
- Builder instance to construct a
FileAsyncRequestBody.
-
contentLength
public Optional<Long> contentLength()
- Specified by:
contentLengthin interfaceAsyncRequestBody- Returns:
- The content length of the data being produced.
-
contentType
public String contentType()
- Specified by:
contentTypein interfaceAsyncRequestBody- Returns:
- The content type of the data being produced.
-
subscribe
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
- Specified by:
subscribein interfaceorg.reactivestreams.Publisher<ByteBuffer>
-
-