org.apache.catalina.core

Class ApplicationFilterFactory


public final class ApplicationFilterFactory
extends java.lang.Object

Factory for the creation and caching of Filters and creationg of Filter Chains.

Version:
$Revision: 1.0

Authors:
Greg Murray
Remy Maucherat

Field Summary

static String
DISPATCHER_REQUEST_PATH_ATTR
static String
DISPATCHER_TYPE_ATTR
static int
ERROR
static Integer
ERROR_INTEGER
static int
FORWARD
static Integer
FORWARD_INTEGER
static int
INCLUDE
static Integer
INCLUDE_INTEGER
static int
REQUEST
static Integer
REQUEST_INTEGER

Method Summary

org.apache.catalina.core.ApplicationFilterChain
createFilterChain(ServletRequest request, Wrapper wrapper, Servlet servlet)
Construct and return a FilterChain implementation that will wrap the execution of the specified servlet instance.
static ApplicationFilterFactory
getInstance()
Return the fqctory instance.

Field Details

DISPATCHER_REQUEST_PATH_ATTR

public static final String DISPATCHER_REQUEST_PATH_ATTR


DISPATCHER_TYPE_ATTR

public static final String DISPATCHER_TYPE_ATTR


ERROR

public static final int ERROR

Field Value:
1


ERROR_INTEGER

public static final Integer ERROR_INTEGER


FORWARD

public static final int FORWARD

Field Value:
2


FORWARD_INTEGER

public static final Integer FORWARD_INTEGER


INCLUDE

public static final int INCLUDE

Field Value:
4


INCLUDE_INTEGER

public static final Integer INCLUDE_INTEGER


REQUEST

public static final int REQUEST

Field Value:
8


REQUEST_INTEGER

public static final Integer REQUEST_INTEGER

Method Details

createFilterChain

public org.apache.catalina.core.ApplicationFilterChain createFilterChain(ServletRequest request,
                                                                         Wrapper wrapper,
                                                                         Servlet servlet)
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


getInstance

public static ApplicationFilterFactory getInstance()
Return the fqctory instance.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.