Package javax.servlet

Class GenericServlet

java.lang.Object
javax.servlet.GenericServlet
All Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig
Direct Known Subclasses:
HttpServlet

public abstract class GenericServlet
extends java.lang.Object
implements Servlet, ServletConfig, java.io.Serializable
The GenericServlet API.
Author:
Manfred Riem ([email protected])
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    GenericServlet()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void destroy()
    Destroy the servlet.
    java.lang.String getInitParameter​(java.lang.String name)
    Get the init parameter.
    java.util.Enumeration<java.lang.String> getInitParameterNames()
    Get the init parameter names.
    ServletConfig getServletConfig()
    Get the servlet config.
    ServletContext getServletContext()
    Get the servlet context.
    java.lang.String getServletInfo()
    Get the servlet info.
    java.lang.String getServletName()
    Get the servlet name.
    void init()
    Init the servlet.
    void init​(ServletConfig config)
    Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
    void log​(java.lang.String message)
    Log the message.
    void log​(java.lang.String message, java.lang.Throwable throwable)
    Log the message.
    abstract void service​(ServletRequest request, ServletResponse response)
    Process the request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait