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:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class SSIServlet extends jakarta.servlet.http.HttpServletServlet to process SSI requests within a webpage. Mapped to a path from within web.xml.- Version:
- $Revision: 1.4 $, $Date: 2007/05/05 05:32:20 $
- Author:
- Bip Thelin, Amy Roh, Dan Sandberg, David Becker
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbufferedShould the output be buffered.protected intdebugDebug level for this servlet.protected LongexpiresExpiration time in seconds for the doc.protected StringinputEncodingInput encoding.protected booleanisVirtualWebappRelativevirtual path can be webapp-relativeprotected StringoutputEncodingOutput encoding.
-
Constructor Summary
Constructors Constructor Description SSIServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)Process and forward the GET request to ourrequestHandler()*voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)Process and forward the POST request to ourrequestHandler().voidinit()Initialize this servlet.protected voidprocessSSI(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, URL resource)protected voidrequestHandler(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)Process our request and locate right SSI command.-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service
-
-
-
-
Field Detail
-
debug
protected int debug
Debug level for this servlet.
-
buffered
protected boolean buffered
Should the output be buffered.
-
expires
protected Long expires
Expiration time in seconds for the doc.
-
isVirtualWebappRelative
protected boolean isVirtualWebappRelative
virtual path can be webapp-relative
-
inputEncoding
protected String inputEncoding
Input encoding. If not specified, uses platform default
-
outputEncoding
protected String outputEncoding
Output encoding. If not specified, uses platform default
-
-
Method Detail
-
init
public void init() throws jakarta.servlet.ServletExceptionInitialize this servlet.- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException- if an error occurs
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, jakarta.servlet.ServletExceptionProcess and forward the GET request to ourrequestHandler()*- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
req- a value of type 'HttpServletRequest'res- a value of type 'HttpServletResponse'- Throws:
IOException- if an error occursjakarta.servlet.ServletException- if an error occurs
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, jakarta.servlet.ServletExceptionProcess and forward the POST request to ourrequestHandler().- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
req- a value of type 'HttpServletRequest'res- a value of type 'HttpServletResponse'- Throws:
IOException- if an error occursjakarta.servlet.ServletException- if an error occurs
-
requestHandler
protected void requestHandler(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, jakarta.servlet.ServletExceptionProcess our request and locate right SSI command.- Parameters:
req- a value of type 'HttpServletRequest'res- a value of type 'HttpServletResponse'- Throws:
IOExceptionjakarta.servlet.ServletException
-
processSSI
protected void processSSI(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, URL resource) throws IOException- Throws:
IOException
-
-