public abstract class AbstractStreamingRequestMarshaller<T> extends Object implements Marshaller<T>
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractStreamingRequestMarshaller.Builder<BuilderT extends AbstractStreamingRequestMarshaller.Builder> |
Modifier and Type | Field and Description |
---|---|
protected Marshaller<T> |
delegateMarshaller |
protected boolean |
requiresLength |
protected boolean |
transferEncoding |
protected boolean |
useHttp2 |
Modifier | Constructor and Description |
---|---|
protected |
AbstractStreamingRequestMarshaller(AbstractStreamingRequestMarshaller.Builder builder) |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
marshall
protected final Marshaller<T> delegateMarshaller
protected final boolean requiresLength
protected final boolean transferEncoding
protected final boolean useHttp2
protected AbstractStreamingRequestMarshaller(AbstractStreamingRequestMarshaller.Builder builder)
protected final void addHeaders(SdkHttpFullRequest.Builder marshalled, Optional<Long> contentLength, boolean requiresLength, boolean transferEncoding, boolean useHttp2)
marshalled
- A mutable builder for SdkHttpFullRequest
representing 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 http2Copyright © 2019. All rights reserved.