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:
- java.io.Serializable,- Servlet,- ServletConfig
 
 public class SSIServlet extends HttpServlet 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:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanallowExecAllow exec (normally blocked for security)protected booleanbufferedShould the output be buffered.protected intdebugDebug level for this servlet.protected java.lang.LongexpiresExpiration time in seconds for the doc.protected java.lang.StringinputEncodingInput encoding.protected booleanisVirtualWebappRelativevirtual path can be webapp-relativeprotected java.lang.StringoutputEncodingOutput encoding.
 - 
Constructor SummaryConstructors Constructor Description SSIServlet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(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, java.net.URL resource)protected voidrequestHandler(HttpServletRequest req, HttpServletResponse res)Process our request and locate right SSI command.- 
Methods inherited from class javax.servlet.http.HttpServletdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 - 
Methods inherited from class javax.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
- 
 
- 
- 
- 
Field Detail- 
debugprotected int debug Debug level for this servlet.
 - 
bufferedprotected boolean buffered Should the output be buffered.
 - 
expiresprotected java.lang.Long expires Expiration time in seconds for the doc.
 - 
isVirtualWebappRelativeprotected boolean isVirtualWebappRelative virtual path can be webapp-relative
 - 
inputEncodingprotected java.lang.String inputEncoding Input encoding. If not specified, uses platform default
 - 
outputEncodingprotected java.lang.String outputEncoding Output encoding. If not specified, uses platform default
 - 
allowExecprotected boolean allowExec Allow exec (normally blocked for security)
 
- 
 - 
Method Detail- 
initpublic void init() throws ServletExceptionInitialize this servlet.- Overrides:
- initin class- GenericServlet
- Throws:
- ServletException- if an error occurs
 
 - 
doGetpublic void doGet(HttpServletRequest req, HttpServletResponse res) throws java.io.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:
- java.io.IOException- if an error occurs
- ServletException- if an error occurs
- See Also:
- ServletResponse.setContentType(java.lang.String)
 
 - 
doPostpublic void doPost(HttpServletRequest req, HttpServletResponse res) throws java.io.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:
- java.io.IOException- if an error occurs
- ServletException- if an error occurs
- See Also:
- ServletOutputStream,- ServletResponse.setContentType(java.lang.String)
 
 - 
requestHandlerprotected void requestHandler(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException Process our request and locate right SSI command.- Parameters:
- req- a value of type 'HttpServletRequest'
- res- a value of type 'HttpServletResponse'
- Throws:
- java.io.IOException- an IO error occurred
 
 - 
processSSIprotected void processSSI(HttpServletRequest req, HttpServletResponse res, java.net.URL resource) throws java.io.IOException - Throws:
- java.io.IOException
 
 
- 
 
-