Class Route53IdInterceptor
java.lang.Object
software.amazon.awssdk.services.route53.internal.Route53IdInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
Route 53 returns a portion of the URL resource path as the ID for a few
elements, but when the service accepts those IDs, the resource path portion
cannot be included, otherwise requests fail. This handler removes those
partial resource path elements from IDs returned by Route 53.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmodifyResponse
(Context.ModifyResponse context, ExecutionAttributes executionAttributes) Modify theSdkResponse
before it is returned by the client.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, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpRequest, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, onExecutionFailure
-
Constructor Details
-
Route53IdInterceptor
public Route53IdInterceptor()
-
-
Method Details
-
modifyResponse
public SdkResponse modifyResponse(Context.ModifyResponse context, ExecutionAttributes executionAttributes) Description copied from interface:ExecutionInterceptor
Modify theSdkResponse
before it is returned by the client.- Specified by:
modifyResponse
in interfaceExecutionInterceptor
- 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.
-