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: 769388 $, $Date: 2009-04-28 15:26:54 +0200 (Tue, 28 Apr 2009) $

Author: Bip Thelin Amy Roh Dan Sandberg David Becker

Field Summary
protected booleanbuffered
Should the output be buffered.
protected intdebug
Debug level for this servlet.
protected Longexpires
Expiration time in seconds for the doc.
protected StringinputEncoding
Input encoding.
protected booleanisVirtualWebappRelative
virtual path can be webapp-relative
protected StringoutputEncoding
Output encoding.
Method Summary
voiddoGet(HttpServletRequest req, HttpServletResponse res)
Process and forward the GET request to our requestHandler()*
voiddoPost(HttpServletRequest req, HttpServletResponse res)
Process and forward the POST request to our requestHandler().
voidinit()
Initialize this servlet.
protected voidprocessSSI(HttpServletRequest req, HttpServletResponse res, URL resource)
protected voidrequestHandler(HttpServletRequest req, HttpServletResponse res)
Process our request and locate right SSI command.

Field Detail

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.

inputEncoding

protected String inputEncoding
Input encoding. If not specified, uses platform default

isVirtualWebappRelative

protected boolean isVirtualWebappRelative
virtual path can be webapp-relative

outputEncoding

protected String outputEncoding
Output encoding. If not specified, uses platform default

Method Detail

doGet

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

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

Throws: IOException if an error occurs ServletException if an error occurs

doPost

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

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

Throws: IOException if an error occurs ServletException if an error occurs

init

public void init()
Initialize this servlet.

Throws: ServletException if an error occurs

processSSI

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

requestHandler

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

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

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.