Class 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
    • 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 our requestHandler()*
      void doPost​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
      Process and forward the POST request to our requestHandler().
      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
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • 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
    • Constructor Detail

      • SSIServlet

        public SSIServlet()
    • Method Detail

      • init

        public void init()
                  throws jakarta.servlet.ServletException
        Initialize this servlet.
        Overrides:
        init in class jakarta.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 our requestHandler()*
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Parameters:
        req - a value of type 'HttpServletRequest'
        res - a value of type 'HttpServletResponse'
        Throws:
        IOException - if an error occurs
        jakarta.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 our requestHandler().
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Parameters:
        req - a value of type 'HttpServletRequest'
        res - a value of type 'HttpServletResponse'
        Throws:
        IOException - if an error occurs
        jakarta.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