Class GetObjectInterceptor
java.lang.Object
software.amazon.awssdk.services.s3.internal.handlers.GetObjectInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
Interceptor for
GetObjectRequest
messages.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterTransmission
(Context.AfterTransmission context, ExecutionAttributes executionAttributes) Read the HTTP response as it was returned by the HTTP client, before it is modified by other interceptors.modifyResponse
(Context.ModifyResponse context, ExecutionAttributes executionAttributes) Modify theSdkResponse
before it is returned by the client.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor
afterExecution, afterMarshalling, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, onExecutionFailure
-
Field Details
-
MULTIPART_CHECKSUM_PATTERN
-
-
Constructor Details
-
GetObjectInterceptor
public GetObjectInterceptor()
-
-
Method Details
-
afterTransmission
public void afterTransmission(Context.AfterTransmission context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptor
Read the HTTP response as it was returned by the HTTP client, before it is modified by other interceptors.ExecutionInterceptor.beforeUnmarshalling(software.amazon.awssdk.core.interceptor.Context.BeforeUnmarshalling, software.amazon.awssdk.core.interceptor.ExecutionAttributes)
should be used in most circumstances for reading the HTTP response because it includes modifications made by other interceptors.It is possible that the HTTP client could have already modified this response, so debug-level wire logging should be trusted over the parameters to this method.
Note: Unlike many other lifecycle methods, this one may be invoked multiple times. If the
RetryPolicy
determines the error code returned by the service is retriable, this will be invoked for each response returned by the service.- Specified by:
afterTransmission
in interfaceExecutionInterceptor
- Parameters:
context
- The current state of the execution, including the SDK and HTTP requests and the unmodified HTTP response.executionAttributes
- A mutable set of attributes scoped to one specific request/response cycle that can be used to
-
modifyResponse
public SdkResponse modifyResponse(Context.ModifyResponse context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptor
Modify theSdkResponse
before it is returned by the client.- Specified by:
modifyResponse
in interfaceExecutionInterceptor
- Parameters:
context
- The current state of the execution, including the SDK and HTTP requests as well as the SDK and HTTP response.executionAttributes
- A mutable set of attributes scoped to one specific request/response cycle that can be used to give data to future lifecycle methods.- Returns:
- The potentially-modified SDK response that should be returned by the client. Must not be null.
-