Package org.apache.catalina.ssi
Class SSIFilter
- java.lang.Object
-
- org.apache.catalina.ssi.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 Summary
Fields Modifier and Type Field Description protected jakarta.servlet.FilterConfig
config
protected Pattern
contentTypeRegEx
regex pattern to match when evaluating content typesprotected int
debug
Debug level for this servlet.protected Long
expires
Expiration time in seconds for the doc.protected boolean
isVirtualWebappRelative
virtual path can be webapp-relativeprotected Pattern
shtmlRegEx
default pattern for ssi filter content type matching
-
Constructor Summary
Constructors Constructor Description SSIFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
void
init(jakarta.servlet.FilterConfig config)
Initialize this servlet.
-
-
-
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
-
-
Method Detail
-
init
public void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
Initialize this servlet.- Specified by:
init
in interfacejakarta.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 interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejakarta.servlet.Filter
-
-