Interface java.servlet.Servlet
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.servlet.Servlet

public interface Servlet
extends Object
Generic servlet interface.

Method Index

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

Methods

 o init
  public abstract void init(ServletStub stub) throws ServletException
Initializes the servlet. This is called automatically by the system when the servlet is first loaded.
Parameters:
stub - servlet initialization information
Throws: ServletException
if a servlet exception has occurred
 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
req - 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