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.
-
destroy()
- Destroys the servlet and cleans up whatever resources are being
held.
-
getServletInfo()
- Returns a string containing information about the author, version,
and copyright of the servlet.
-
init(ServletStub)
- Initializes the servlet.
-
service(ServletRequest, ServletResponse)
- Services a single request from the client.
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
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
getServletInfo
public abstract String getServletInfo()
- Returns a string containing information about the author, version,
and copyright of the servlet.
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