com.caucho.server.dispatch
Class FilterMapper

java.lang.Object
  extended by com.caucho.server.dispatch.FilterMapper

public class FilterMapper
extends java.lang.Object

Manages dispatching: servlets and filters.


Constructor Summary
FilterMapper()
           
 
Method Summary
 void addFilterMapping(FilterMapping mapping)
          Adds a filter mapping
 void addTopFilter(FilterChainBuilder filterBuilder)
          Adds a top-filter.
 FilterChain buildDispatchChain(Invocation invocation, FilterChain chain)
          Fills in the invocation.
 FilterChain buildFilterChain(FilterChain chain, java.lang.String servletName)
          Fills in the invocation.
 FilterManager getFilterManager()
          Returns the filter manager.
 ServletContext getServletContext()
          Gets the servlet context.
 void setFilterManager(FilterManager manager)
          Sets the filter manager.
 void setServletContext(ServletContext servletContext)
          Sets the servlet context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterMapper

public FilterMapper()
Method Detail

setServletContext

public void setServletContext(ServletContext servletContext)
Sets the servlet context.


getServletContext

public ServletContext getServletContext()
Gets the servlet context.


getFilterManager

public FilterManager getFilterManager()
Returns the filter manager.


setFilterManager

public void setFilterManager(FilterManager manager)
Sets the filter manager.


addFilterMapping

public void addFilterMapping(FilterMapping mapping)
                      throws ServletException
Adds a filter mapping

Throws:
ServletException

addTopFilter

public void addTopFilter(FilterChainBuilder filterBuilder)
Adds a top-filter. Top filters are added to every request in the filter chain.


buildDispatchChain

public FilterChain buildDispatchChain(Invocation invocation,
                                      FilterChain chain)
                               throws ServletException
Fills in the invocation.

Throws:
ServletException

buildFilterChain

public FilterChain buildFilterChain(FilterChain chain,
                                    java.lang.String servletName)
                             throws ServletException
Fills in the invocation.

Throws:
ServletException