Class Route53IdInterceptor

java.lang.Object
software.amazon.awssdk.services.route53.internal.Route53IdInterceptor
All Implemented Interfaces:
ExecutionInterceptor

public final class Route53IdInterceptor extends Object implements 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 Details

    • Route53IdInterceptor

      public Route53IdInterceptor()
  • Method Details

    • modifyResponse

      public SdkResponse modifyResponse(Context.ModifyResponse context, ExecutionAttributes executionAttributes)
      Description copied from interface: ExecutionInterceptor
      Modify the SdkResponse before it is returned by the client.
      Specified by:
      modifyResponse in interface ExecutionInterceptor
      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.