Class ClasspathInterceptorChainFactory

java.lang.Object
software.amazon.awssdk.core.interceptor.ClasspathInterceptorChainFactory

@SdkProtectedApi public final class ClasspathInterceptorChainFactory extends Object
Factory for creating request/response handler chains from the classpath.
  • Constructor Details

    • ClasspathInterceptorChainFactory

      public ClasspathInterceptorChainFactory()
  • Method Details

    • getInterceptors

      public List<ExecutionInterceptor> getInterceptors(String resource)
      Constructs a new request handler chain by analyzing the specified classpath resource.
      Parameters:
      resource - The resource to load from the classpath containing the list of request handlers to instantiate.
      Returns:
      A list of request handlers based on the handlers referenced in the specified resource.
    • getGlobalInterceptors

      public List<ExecutionInterceptor> getGlobalInterceptors()
      Load the global handlers by reading the global execution interceptors resource.