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