Class 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
    • Constructor Detail

      • FilterBase

        public FilterBase()
    • Method Detail

      • getLogger

        protected abstract Logger getLogger()
      • init

        public void init​(jakarta.servlet.FilterConfig filterConfig)
                  throws jakarta.servlet.ServletException
        Specified by:
        init in interface jakarta.servlet.Filter
        Throws:
        jakarta.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface jakarta.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, else false