javax.servlet
Class GenericServlet

java.lang.Object
  extended by 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 base class from which all servlets extend.

Author:
Rick Knowles
See Also:
Serialized Form

Constructor Summary
GenericServlet()
           
 
Method Summary
 void destroy()
           
 java.lang.String getInitParameter(java.lang.String name)
           
 java.util.Enumeration getInitParameterNames()
           
 ServletConfig getServletConfig()
           
 ServletContext getServletContext()
           
 java.lang.String getServletInfo()
           
 java.lang.String getServletName()
           
 void init()
           
 void init(ServletConfig config)
           
 void log(java.lang.String msg)
           
 void log(java.lang.String message, java.lang.Throwable t)
           
abstract  void service(ServletRequest req, ServletResponse res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericServlet

public GenericServlet()
Method Detail

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Specified by:
getInitParameter in interface ServletConfig

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface ServletConfig

getServletConfig

public ServletConfig getServletConfig()
Specified by:
getServletConfig in interface Servlet

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Throws:
ServletException

init

public void init()
          throws ServletException
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Servlet

getServletContext

public ServletContext getServletContext()
Specified by:
getServletContext in interface ServletConfig

getServletInfo

public java.lang.String getServletInfo()
Specified by:
getServletInfo in interface Servlet

getServletName

public java.lang.String getServletName()
Specified by:
getServletName in interface ServletConfig

log

public void log(java.lang.String msg)

log

public void log(java.lang.String message,
                java.lang.Throwable t)

service

public abstract void service(ServletRequest req,
                             ServletResponse res)
                      throws java.io.IOException,
                             ServletException
Specified by:
service in interface Servlet
Throws:
java.io.IOException
ServletException


Copyright © 2013. All Rights Reserved.