Class FilterChainManager<ServletContextType extends jakarta.servlet.ServletContext>

java.lang.Object
com.amazonaws.serverless.proxy.internal.servlet.FilterChainManager<ServletContextType>
Direct Known Subclasses:
AwsFilterChainManager

public abstract class FilterChainManager<ServletContextType extends jakarta.servlet.ServletContext> extends Object
This object is in charge of matching a servlet request to a set of filters, creating the filter chain for a request, and cache filter chains that were already loaded for re-use. This object should be used by the framework-specific implementations that use the HttpServletRequest and HttpServletResponse objects. For example, the Spring implementation creates the ServletContext when the application is initialized the first time and creates a FilterChainManager to execute its filters for each request.
  • Field Details

    • servletContext

      protected ServletContextType extends jakarta.servlet.ServletContext servletContext
  • Method Details

    • getFilterHolders

      protected abstract Map<String,FilterHolder> getFilterHolders()
      This method is used by the getFilterChain method to extract a Map of filter holders from the current context. This method is implemented in the AwsFilterChainManager class.
      Returns:
      A Map of filter holders with the filter name as key and the filter holder object as value