Class CustomizeServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.lf.digester.web.servlet.CustomizeServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CustomizeServlet extends javax.servlet.http.HttpServlet
Adjusts the 'webstart_war.html' resource for the Digester web start application (read from classpath).

The plain HTML file is used for the CMS while this servlet is part of the Web Start application normally run by a Tomcat web container. Here we have the chance to apply server logic to the HTML fragment (e.g. add header/footer tags, replace parts dynamically based on the address etc.).

Since:
1.6
Author:
Axel Schwolow
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Generates the response via HTTP GET.
    void
    doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Generates the response via HTTP POST.

    Methods inherited from class javax.servlet.http.HttpServlet

    service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomizeServlet

      public CustomizeServlet()
      Constructor method.

      Since:
      1.6
  • Method Details

    • doGet

      public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Generates the response via HTTP GET.

      Parameters:
      request - HTTP request
      response - HTTP response
      Throws:
      javax.servlet.ServletException - Error indication
      IOException - Error indication
    • doPost

      public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Generates the response via HTTP POST.

      Parameters:
      request - HTTP request
      response - HTTP response
      Throws:
      javax.servlet.ServletException - Error indication
      IOException - Error indication