Class SwitchToPostInterceptor
java.lang.Object
software.amazon.awssdk.services.cloudsearchdomain.internal.SwitchToPostInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
Ensures that all SearchRequests use
POST instead of GET, moving the query parameters to be form data.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmodifyHttpContent(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) Modify theSdkHttpFullRequestbefore it is sent to the service.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor
afterExecution, afterMarshalling, afterTransmission, afterUnmarshalling, beforeExecution, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse, onExecutionFailure
-
Constructor Details
-
SwitchToPostInterceptor
public SwitchToPostInterceptor()
-
-
Method Details
-
modifyHttpRequest
public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptorModify theSdkHttpFullRequestbefore it is sent to the service.- Specified by:
modifyHttpRequestin 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.
-
modifyHttpContent
public Optional<RequestBody> modifyHttpContent(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) - Specified by:
modifyHttpContentin interfaceExecutionInterceptor
-