Package org.apache.catalina.ssi
Class SSIServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.catalina.ssi.SSIServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
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 Summary
FieldsModifier 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. -
Constructor Summary
Constructors -
Method Summary
Modifier 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 javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
debug
protected int debugDebug level for this servlet. -
buffered
protected boolean bufferedShould the output be buffered. -
expires
Expiration time in seconds for the doc. -
isVirtualWebappRelative
protected boolean isVirtualWebappRelativevirtual path can be webapp-relative -
inputEncoding
Input encoding. If not specified, uses platform default -
outputEncoding
Output encoding. If not specified, uses platform default -
allowExec
protected boolean allowExecAllow exec (normally blocked for security)
-
-
Constructor Details
-
SSIServlet
public SSIServlet()
-
-
Method Details
-
init
Initialize this servlet.- Overrides:
initin classGenericServlet- Throws:
ServletException- if an error occurs
-
doGet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException Process and forward the GET request to ourrequestHandler()*- Overrides:
doGetin classHttpServlet- Parameters:
req- a value of type 'HttpServletRequest'res- a value of type 'HttpServletResponse'- Throws:
IOException- if an error occursServletException- if an error occurs- See Also:
-
doPost
public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException Process and forward the POST request to ourrequestHandler().- Overrides:
doPostin classHttpServlet- Parameters:
req- a value of type 'HttpServletRequest'res- a value of type 'HttpServletResponse'- Throws:
IOException- if an error occursServletException- if an error occurs- See Also:
-
requestHandler
Process 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
-
processSSI
protected void processSSI(HttpServletRequest req, HttpServletResponse res, URL resource) throws IOException - Throws:
IOException
-