Class EventStreamInitialRequestInterceptor
java.lang.Object
software.amazon.awssdk.awscore.eventstream.EventStreamInitialRequestInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
An interceptor for event stream requests sent over RPC. This interceptor will prepend the initial request (i.e. the
serialized request POJO) to the stream of events supplied by the caller.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmodifyAsyncHttpContent
(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) modifyHttpRequest
(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) Modify theSdkHttpFullRequest
before it is sent to the service.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, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
-
Constructor Details
-
EventStreamInitialRequestInterceptor
public EventStreamInitialRequestInterceptor()
-
-
Method Details
-
modifyHttpRequest
public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptor
Modify theSdkHttpFullRequest
before it is sent to the service.- Specified by:
modifyHttpRequest
in interfaceExecutionInterceptor
- 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.
-
modifyAsyncHttpContent
public Optional<AsyncRequestBody> modifyAsyncHttpContent(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) - Specified by:
modifyAsyncHttpContent
in interfaceExecutionInterceptor
-