Package org.glassfish.grizzly.servlet
Class FilterChainFactory
- java.lang.Object
-
- org.glassfish.grizzly.servlet.FilterChainFactory
-
public class FilterChainFactory extends Object
FilterChainFactoryis responsible for building aFilterChaininstance with the Filters that need to be invoked for a particular request URI. TODO: We should look into how to cache these. They currently are re-built on each request.- Since:
- 2.2
-
-
Constructor Summary
Constructors Constructor Description FilterChainFactory(WebappContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.grizzly.servlet.FilterChainImplcreateFilterChain(jakarta.servlet.ServletRequest request, jakarta.servlet.Servlet servlet, jakarta.servlet.DispatcherType dispatcherType)Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance.org.glassfish.grizzly.servlet.FilterChainImplcreateFilterChain(org.glassfish.grizzly.http.server.Request request, jakarta.servlet.Servlet servlet, jakarta.servlet.DispatcherType dispatcherType)Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance.
-
-
-
Constructor Detail
-
FilterChainFactory
public FilterChainFactory(WebappContext ctx)
-
-
Method Detail
-
createFilterChain
public org.glassfish.grizzly.servlet.FilterChainImpl createFilterChain(jakarta.servlet.ServletRequest request, jakarta.servlet.Servlet servlet, jakarta.servlet.DispatcherType dispatcherType)Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance. If we should not execute a filter chain at all, returnnull.- Parameters:
request- The servlet request we are processingservlet- The servlet instance to be wrapped
-
createFilterChain
public org.glassfish.grizzly.servlet.FilterChainImpl createFilterChain(org.glassfish.grizzly.http.server.Request request, jakarta.servlet.Servlet servlet, jakarta.servlet.DispatcherType dispatcherType)Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance. If we should not execute a filter chain at all, returnnull.- Parameters:
request- The servlet request we are processingservlet- The servlet instance to be wrapped
-
-