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.HttpServlet
Servlet 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 boolean
buffered
Should the output be buffered.protected int
debug
Debug level for this servlet.protected Long
expires
Expiration time in seconds for the doc.protected String
inputEncoding
Input encoding.protected boolean
isVirtualWebappRelative
virtual path can be webapp-relativeprotected String
outputEncoding
Output encoding.
-
Constructor Summary
Constructors Constructor Description SSIServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
Process and forward the GET request to ourrequestHandler()
*void
doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
Process and forward the POST request to ourrequestHandler()
.void
init()
Initialize this servlet.protected void
processSSI(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, URL resource)
protected void
requestHandler(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, 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.ServletException
Initialize this servlet.- Overrides:
init
in 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.ServletException
Process and forward the GET request to ourrequestHandler()
*- Overrides:
doGet
in 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.ServletException
Process and forward the POST request to ourrequestHandler()
.- Overrides:
doPost
in 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.ServletException
Process our request and locate right SSI command.- Parameters:
req
- a value of type 'HttpServletRequest'res
- a value of type 'HttpServletResponse'- Throws:
IOException
jakarta.servlet.ServletException
-
processSSI
protected void processSSI(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, URL resource) throws IOException
- Throws:
IOException
-
-