Package org.apache.catalina.ssi
Class SSIServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.catalina.ssi.SSIServlet
- All Implemented Interfaces:
- Servlet,- ServletConfig,- Serializable
Servlet to process SSI requests within a webpage. Mapped to a path from within web.xml.
- Author:
- Bip Thelin, Amy Roh, Dan Sandberg, David Becker
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanAllow exec (normally blocked for security)protected booleanShould the output be buffered.protected intDebug level for this servlet.protected LongExpiration time in seconds for the doc.protected StringInput encoding.protected booleanvirtual path can be webapp-relativeprotected StringOutput encoding.Fields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoGet(HttpServletRequest req, HttpServletResponse res) Process and forward the GET request to ourrequestHandler()*voiddoPost(HttpServletRequest req, HttpServletResponse res) Process and forward the POST request to ourrequestHandler().voidinit()Initialize this servlet.protected voidprocessSSI(HttpServletRequest req, HttpServletResponse res, URL resource) protected voidProcess our request and locate right SSI command.Methods inherited from class jakarta.servlet.http.HttpServletdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
- 
Field Details- 
debugprotected int debugDebug level for this servlet.
- 
bufferedprotected boolean bufferedShould the output be buffered.
- 
expiresExpiration time in seconds for the doc.
- 
isVirtualWebappRelativeprotected boolean isVirtualWebappRelativevirtual path can be webapp-relative
- 
inputEncodingInput encoding. If not specified, uses platform default
- 
outputEncodingOutput encoding. If not specified, uses platform default
- 
allowExecprotected boolean allowExecAllow exec (normally blocked for security)
 
- 
- 
Constructor Details- 
SSIServletpublic SSIServlet()
 
- 
- 
Method Details- 
initInitialize this servlet.- Overrides:
- initin class- GenericServlet
- Throws:
- ServletException- if an error occurs
 
- 
doGetpublic void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException Process and forward the GET request to ourrequestHandler()*- Overrides:
- doGetin class- HttpServlet
- Parameters:
- req- a value of type 'HttpServletRequest'
- res- a value of type 'HttpServletResponse'
- Throws:
- IOException- if an error occurs
- ServletException- if an error occurs
- See Also:
 
- 
doPostpublic void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException Process and forward the POST request to ourrequestHandler().- Overrides:
- doPostin class- HttpServlet
- Parameters:
- req- a value of type 'HttpServletRequest'
- res- a value of type 'HttpServletResponse'
- Throws:
- IOException- if an error occurs
- ServletException- if an error occurs
- See Also:
 
- 
requestHandlerProcess our request and locate right SSI command.- Parameters:
- req- a value of type 'HttpServletRequest'
- res- a value of type 'HttpServletResponse'
- Throws:
- IOException- an IO error occurred
 
- 
processSSIprotected void processSSI(HttpServletRequest req, HttpServletResponse res, URL resource) throws IOException - Throws:
- IOException
 
 
-