Package org.apache.catalina.filters
Class FilterBase
- java.lang.Object
-
- org.apache.catalina.filters.FilterBase
-
- All Implemented Interfaces:
jakarta.servlet.Filter
- Direct Known Subclasses:
CsrfPreventionFilter
public abstract class FilterBase extends Object implements jakarta.servlet.Filter
Base class for filters that provides generic initialisation and a simple no-op destruction.- Author:
- xxd
-
-
Field Summary
Fields Modifier and Type Field Description protected static ResourceBundle
rb
-
Constructor Summary
Constructors Constructor Description FilterBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
destroy()
protected abstract Logger
getLogger()
void
init(jakarta.servlet.FilterConfig filterConfig)
protected boolean
isConfigProblemFatal()
Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting.
-
-
-
Field Detail
-
rb
protected static final ResourceBundle rb
-
-
Method Detail
-
getLogger
protected abstract Logger getLogger()
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
- Specified by:
init
in interfacejakarta.servlet.Filter
- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.servlet.Filter
-
isConfigProblemFatal
protected boolean isConfigProblemFatal()
Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting.- Returns:
true
if a problem should trigger the failure of this filter, elsefalse
-
-