com.caucho.server.dispatch
Class FilterChainFilterBuilder

java.lang.Object
  extended by com.caucho.server.dispatch.FilterChainBuilder
      extended by com.caucho.server.dispatch.FilterChainFilterBuilder

public class FilterChainFilterBuilder
extends FilterChainBuilder

A filter chain factory which adds a filter.


Constructor Summary
FilterChainFilterBuilder()
          Adds a filter to the chain.
FilterChainFilterBuilder(Filter filter)
          Adds a filter to the chain.
 
Method Summary
 FilterChain build(FilterChain next, Invocation invocation)
          Builds a filter chain dynamically based on the invocation.
 Filter getFilter()
          Returns the filter.
 void setFilter(Filter filter)
          Sets the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterChainFilterBuilder

public FilterChainFilterBuilder()
Adds a filter to the chain.


FilterChainFilterBuilder

public FilterChainFilterBuilder(Filter filter)
Adds a filter to the chain.

Method Detail

getFilter

public Filter getFilter()
Returns the filter.


setFilter

public void setFilter(Filter filter)
Sets the filter.


build

public FilterChain build(FilterChain next,
                         Invocation invocation)
Builds a filter chain dynamically based on the invocation.

Specified by:
build in class FilterChainBuilder
Parameters:
next - the next filter in the chain.
invocation - the request's invocation.