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.FilterConfigconfigprotected PatterncontentTypeRegExregex pattern to match when evaluating content typesprotected intdebugDebug level for this servlet.protected LongexpiresExpiration time in seconds for the doc.protected booleanisVirtualWebappRelativevirtual path can be webapp-relativeprotected PatternshtmlRegExdefault 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 voiddestroy()voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)voidinit(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.ServletExceptionInitialize this servlet.- Specified by:
initin 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:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejakarta.servlet.Filter
-
-