@NotThreadSafe public final class RequestClientOptions extends Object
AmazonWebServiceRequest
s.Modifier and Type | Class and Description |
---|---|
static class |
RequestClientOptions.Marker |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_STREAM_BUFFER_SIZE
Used to enable mark-and-reset for
non-mark-and-resettable non-file input stream for up to 128K memory
buffering by default.
|
Constructor and Description |
---|
RequestClientOptions() |
Modifier and Type | Method and Description |
---|---|
void |
appendUserAgent(String userAgent)
Appends a user agent to the USER_AGENT client marker.
|
String |
getClientMarker(RequestClientOptions.Marker marker)
Returns the value of the specified marker; or null if there is no such
value.
|
int |
getReadLimit()
Returns the mark-and-reset read limit; defaults to
131073.
|
boolean |
isSkipAppendUriPath()
Gets the boolean value to skip the appendUri call in
ApacheHttpRequestFactory.create(Request, HttpClientSettings)
method. |
void |
putClientMarker(RequestClientOptions.Marker marker,
String value)
Associates the given value with the given marker.
|
void |
setReadLimit(int readLimit)
Sets the optional mark-and-reset read limit used for signing and retry
purposes.
|
void |
setSkipAppendUriPath(boolean skipAppendUriPath)
Sets the boolean value to skip the appendUri call in
ApacheHttpRequestFactory.create(Request, HttpClientSettings)
method. |
public static final int DEFAULT_STREAM_BUFFER_SIZE
DEFAULT_STREAM_BUFFER_SIZE
bytes would
fail to reset the underlying input stream as the mark position would
have been invalidated.public String getClientMarker(RequestClientOptions.Marker marker)
public void putClientMarker(RequestClientOptions.Marker marker, String value)
RequestClientOptions.Marker.USER_AGENT
is only intended for internal use
by the AWS SDK.public void appendUserAgent(String userAgent)
public final int getReadLimit()
InputStream.mark(int)
public final void setReadLimit(int readLimit)
InputStream.mark(int)
public boolean isSkipAppendUriPath()
ApacheHttpRequestFactory.create(Request, HttpClientSettings)
method. The default value is false, which means the appendUri call is not skipped.
This options is used in APIs that directly execute given presigned urls. For these requests, the extra slash
should not be included.public void setSkipAppendUriPath(boolean skipAppendUriPath)
ApacheHttpRequestFactory.create(Request, HttpClientSettings)
method. The default value is false, which means the appendUri call is not skipped.
This options is used in APIs that directly execute given presigned urls. For these requests, the extra slash
should not be included.