All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.servlet.Servlet

public interface Servlet
Generic servlet interface.


Method Index

 o destroy()
Destroys the servlet and cleans up whatever resources are being held.
 o getServletConfig()
Returns the configuration for this servlet.
 o getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.
 o init(ServletConfig)
Initializes the servlet.
 o service(ServletRequest, ServletResponse)
Services a single request from the client.

Methods

 o init
  public abstract void init(ServletConfig config) throws ServletException
Initializes the servlet. This is called automatically by the system when the servlet is first loaded.

Parameters:
config - servlet configuration information
Throws: ServletException
if a servlet exception has occurred
 o getServletConfig
  public abstract ServletConfig getServletConfig()
Returns the configuration for this servlet.

 o service
  public abstract void service(ServletRequest req,
                               ServletResponse res) throws ServletException, IOException
Services a single request from the client.

Parameters:
req - the servlet request
res - the servlet response
Throws: ServletException
if a servlet exception has occurred
Throws: IOException
if an I/O exception has occurred
 o getServletInfo
  public abstract String getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.

 o destroy
  public abstract void destroy()
Destroys the servlet and cleans up whatever resources are being held.


All Packages  Class Hierarchy  This Package  Previous  Next  Index