org.apache.catalina.ssi

Class SSIServlet


public class SSIServlet
extends HttpServlet

Servlet to process SSI requests within a webpage. Mapped to a path from within web.xml.

Version:
$Revision: 1.6.2.2 $, $Date: 2004/09/01 16:31:01 $

Authors:
Bip Thelin
Amy Roh
Dan Sandberg

Field Summary

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 boolean
isVirtualWebappRelative
virtual path can be webapp-relative

Method Summary

void
doGet(HttpServletRequest req, HttpServletResponse res)
Process and forward the GET request to our requestHandler()*
void
doPost(HttpServletRequest req, HttpServletResponse res)
Process and forward the POST request to our requestHandler().
void
init()
Initialize this servlet.
protected void
processSSI(HttpServletRequest req, HttpServletResponse res, URL resource)
protected void
requestHandler(HttpServletRequest req, HttpServletResponse res)
Process our request and locate right SSI command.

Field Details

buffered

protected boolean buffered
Should the output be buffered.


debug

protected int debug
Debug level for this servlet.


expires

protected Long expires
Expiration time in seconds for the doc.


isVirtualWebappRelative

protected boolean isVirtualWebappRelative
virtual path can be webapp-relative

Method Details

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
            throws IOException,
                   ServletException
Process and forward the GET request to our requestHandler()*

Parameters:
req - a value of type 'HttpServletRequest'
res - a value of type 'HttpServletResponse'


doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws IOException,
                   ServletException
Process and forward the POST request to our requestHandler().

Parameters:
req - a value of type 'HttpServletRequest'
res - a value of type 'HttpServletResponse'


init

public void init()
            throws ServletException
Initialize this servlet.


processSSI

protected void processSSI(HttpServletRequest req,
                          HttpServletResponse res,
                          URL resource)
            throws IOException


requestHandler

protected void requestHandler(HttpServletRequest req,
                              HttpServletResponse res)
            throws IOException,
                   ServletException
Process our request and locate right SSI command.

Parameters:
req - a value of type 'HttpServletRequest'
res - a value of type 'HttpServletResponse'


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.