Class GenericServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
    Direct Known Subclasses:
    ColorServlet, DebugServlet

    @Deprecated
    public abstract class GenericServlet
    extends javax.servlet.GenericServlet
    Deprecated.
    Defines a generic, protocol-independent servlet.

    GenericServlet has an auto-init system, that automatically invokes the method matching the signature void setX(<Type>), for every init-parameter x. Both camelCase and lisp-style parameter naming is supported, lisp-style names will be converted to camelCase. Parameter values are automatically converted from string representation to most basic types, if necessary.

    Version:
    $Id: GenericServlet.java#1 $
    Author:
    Harald Kuhr, last modified by $Author: haku $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericServlet()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void init​(javax.servlet.ServletConfig pConfig)
      Deprecated.
      Called by the web container to indicate to a servlet that it is being placed into service.
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, service
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericServlet

        public GenericServlet()
        Deprecated.
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig pConfig)
                  throws javax.servlet.ServletException
        Deprecated.
        Called by the web container to indicate to a servlet that it is being placed into service.

        This implementation stores the ServletConfig object it receives from the servlet container for later use. When overriding this form of the method, call super.init(config).

        This implementation will also set all configured key/value pairs, that have a matching setter method annotated with InitParam.

        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Parameters:
        pConfig - the servlet config
        Throws:
        javax.servlet.ServletException - if the servlet could not be initialized.
        See Also:
        GenericServlet.init(javax.servlet.ServletConfig), init, BeanUtil.configure(Object, java.util.Map, boolean)