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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classObject used as a key for the filter chain cache. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Map<String,FilterHolder> This method is used by thegetFilterChainmethod to extract a Map of filter holders from the current context.
-
Field Details
-
servletContext
-
-
Method Details
-
getFilterHolders
This method is used by thegetFilterChainmethod to extract a Map of filter holders from the current context. This method is implemented in theAwsFilterChainManagerclass.- Returns:
- A Map of filter holders with the filter name as key and the filter holder object as value
-