All Packages Class Hierarchy This Package Previous Next Index
Interface java.servlet.Servlet
- public interface Servlet
Generic servlet interface.
-
destroy()
- Destroys the servlet and cleans up whatever resources are being
held.
-
getServletConfig()
- Returns the configuration for this servlet.
-
getServletInfo()
- Returns a string containing information about the author, version,
and copyright of the servlet.
-
init(ServletConfig)
- Initializes the servlet.
-
service(ServletRequest, ServletResponse)
- Services a single request from the client.
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
getServletConfig
public abstract ServletConfig getServletConfig()
- Returns the configuration for this servlet.
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
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