Class FilterChainFactory

java.lang.Object
org.glassfish.grizzly.servlet.FilterChainFactory

public class FilterChainFactory extends Object
FilterChainFactory is responsible for building a FilterChain instance 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.glassfish.grizzly.servlet.FilterChainImpl
    createFilterChain(javax.servlet.ServletRequest request, javax.servlet.Servlet servlet, javax.servlet.DispatcherType dispatcherType)
    Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance.
    org.glassfish.grizzly.servlet.FilterChainImpl
    createFilterChain(org.glassfish.grizzly.http.server.Request request, javax.servlet.Servlet servlet, javax.servlet.DispatcherType dispatcherType)
    Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FilterChainFactory

      public FilterChainFactory(WebappContext ctx)
  • Method Details

    • createFilterChain

      public org.glassfish.grizzly.servlet.FilterChainImpl createFilterChain(javax.servlet.ServletRequest request, javax.servlet.Servlet servlet, javax.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, return null.
      Parameters:
      request - The servlet request we are processing
      servlet - The servlet instance to be wrapped
    • createFilterChain

      public org.glassfish.grizzly.servlet.FilterChainImpl createFilterChain(org.glassfish.grizzly.http.server.Request request, javax.servlet.Servlet servlet, javax.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, return null.
      Parameters:
      request - The servlet request we are processing
      servlet - The servlet instance to be wrapped