Class AbstractStreamingRequestMarshaller<T>
java.lang.Object
software.amazon.awssdk.core.internal.transform.AbstractStreamingRequestMarshaller<T>
- All Implemented Interfaces:
Marshaller<T>
- Direct Known Subclasses:
AsyncStreamingRequestMarshaller,StreamingRequestMarshaller
@SdkInternalApi
public abstract class AbstractStreamingRequestMarshaller<T>
extends Object
implements Marshaller<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAbstractStreamingRequestMarshaller.Builder<BuilderT extends AbstractStreamingRequestMarshaller.Builder> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Marshaller<T>protected final booleanprotected final booleanprotected final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddHeaders(SdkHttpFullRequest.Builder marshalled, Optional<Long> contentLength, boolean requiresLength, boolean transferEncoding, boolean useHttp2) This method will run certain validations for content-length and add additional headers (like Transfer-Encoding) if necessary.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.runtime.transform.Marshaller
marshall
-
Field Details
-
delegateMarshaller
-
requiresLength
protected final boolean requiresLength -
transferEncoding
protected final boolean transferEncoding -
useHttp2
protected final boolean useHttp2
-
-
Constructor Details
-
AbstractStreamingRequestMarshaller
-
-
Method Details
-
addHeaders
protected final void addHeaders(SdkHttpFullRequest.Builder marshalled, Optional<Long> contentLength, boolean requiresLength, boolean transferEncoding, boolean useHttp2) This method will run certain validations for content-length and add additional headers (like Transfer-Encoding) if necessary. If requiresLength and transferEncoding is not set to true and Content Length is missing, SDK is not required to calculate the Content-Length and delegate that behavior to the underlying http client.- Parameters:
marshalled- A mutable builder forSdkHttpFullRequestrepresenting a HTTP request.contentLength- Optional of content lengthrequiresLength- True if Content-Length header is required on the requesttransferEncoding- True if "Transfer-Encoding: chunked" header should be set on requestuseHttp2- True if the operation uses http2
-