Class NoOpFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class NoOpFilter
    extends Object
    implements javax.servlet.Filter
    A filter without any effect. It can be used to disable the automatically registered filters CacheFilter, NoCacheFilter and TileCacheFilter if, for whatever reason, these are not wanted.
    • Constructor Detail

      • NoOpFilter

        public NoOpFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
        Specified by:
        init in interface javax.servlet.Filter
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest request,
                             javax.servlet.ServletResponse response,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter