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 ResourceBundlerb
-
Constructor Summary
Constructors Constructor Description FilterBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected abstract LoggergetLogger()voidinit(jakarta.servlet.FilterConfig filterConfig)protected booleanisConfigProblemFatal()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:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin 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:
trueif a problem should trigger the failure of this filter, elsefalse
-
-