Class GetObjectInterceptor

java.lang.Object
software.amazon.awssdk.services.s3.internal.handlers.GetObjectInterceptor
All Implemented Interfaces:
ExecutionInterceptor

public class GetObjectInterceptor extends Object implements ExecutionInterceptor
Interceptor for GetObjectRequest messages.
  • Field Details

    • MULTIPART_CHECKSUM_PATTERN

      public static final Pattern 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 interface ExecutionInterceptor
      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 the SdkResponse before it is returned by the client.
      Specified by:
      modifyResponse in interface ExecutionInterceptor
      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.