com.caucho.server.dispatch
Class FilterManager

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

public class FilterManager
extends java.lang.Object

Manages the servlets.


Constructor Summary
FilterManager()
           
 
Method Summary
 void addFilter(FilterConfigImpl config)
          Adds a filter to the filter manager.
 void addFilterMapping(FilterMapping filterMapping)
           
 Filter createFilter(java.lang.String filterName)
          Instantiates a filter given its configuration.
 void destroy()
           
 FilterConfigImpl getFilter(java.lang.String filterName)
          Adds a filter to the filter manager.
 java.util.HashMap<java.lang.String,FilterConfigImpl> getFilters()
           
 java.util.Set<java.lang.String> getServletNameMappings(java.lang.String filterName)
           
 java.util.Set<java.lang.String> getUrlPatternMappings(java.lang.String filterName)
           
 void init()
          Initialize filters that need starting at server start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterManager

public FilterManager()
Method Detail

addFilter

public void addFilter(FilterConfigImpl config)
Adds a filter to the filter manager.


getFilter

public FilterConfigImpl getFilter(java.lang.String filterName)
Adds a filter to the filter manager.


getFilters

public java.util.HashMap<java.lang.String,FilterConfigImpl> getFilters()

init

@PostConstruct
public void init()
Initialize filters that need starting at server start.


addFilterMapping

public void addFilterMapping(FilterMapping filterMapping)

getUrlPatternMappings

public java.util.Set<java.lang.String> getUrlPatternMappings(java.lang.String filterName)

getServletNameMappings

public java.util.Set<java.lang.String> getServletNameMappings(java.lang.String filterName)

createFilter

public Filter createFilter(java.lang.String filterName)
                    throws ServletException
Instantiates a filter given its configuration.

Parameters:
filterName - the filter
Returns:
the initialized filter.
Throws:
ServletException

destroy

public void destroy()