Class StreamingRequestInterceptor

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

public final class StreamingRequestInterceptor extends Object implements ExecutionInterceptor
Interceptor to add an 'Expect: 100-continue' header to the HTTP Request if it represents a PUT Object request.
  • Constructor Details

    • StreamingRequestInterceptor

      public StreamingRequestInterceptor()
  • Method Details

    • modifyHttpRequest

      public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes)
      Description copied from interface: ExecutionInterceptor
      Modify the SdkHttpFullRequest before it is sent to the service.
      Specified by:
      modifyHttpRequest in interface ExecutionInterceptor
      Parameters:
      context - The current state of the execution, including the SDK and current HTTP request.
      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 HTTP request that should be sent to the service. Must not be null.