Class SSIFilter

  • All Implemented Interfaces:
    jakarta.servlet.Filter

    public class SSIFilter
    extends Object
    implements jakarta.servlet.Filter
    Filter to process SSI requests within a webpage. Mapped to a content types from within web.xml.
    Version:
    $Revision: 1.1 $, $Date: 2007/02/13 19:16:21 $
    Author:
    David Becker
    See Also:
    SSIServlet
    • Field Detail

      • config

        protected jakarta.servlet.FilterConfig config
      • debug

        protected int debug
        Debug level for this servlet.
      • expires

        protected Long expires
        Expiration time in seconds for the doc.
      • isVirtualWebappRelative

        protected boolean isVirtualWebappRelative
        virtual path can be webapp-relative
      • contentTypeRegEx

        protected Pattern contentTypeRegEx
        regex pattern to match when evaluating content types
      • shtmlRegEx

        protected Pattern shtmlRegEx
        default pattern for ssi filter content type matching
    • Constructor Detail

      • SSIFilter

        public SSIFilter()
    • Method Detail

      • init

        public void init​(jakarta.servlet.FilterConfig config)
                  throws jakarta.servlet.ServletException
        Initialize this servlet.
        Specified by:
        init in interface jakarta.servlet.Filter
        Throws:
        jakarta.servlet.ServletException - if an error occurs
      • doFilter

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

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