- All Known Implementing Classes:
DefaultServlet
,GenericServlet
,HttpServlet
public interface Servlet
The Servlet API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and Type Method Description void
destroy()
Destroy the servlet.ServletConfig
getServletConfig()
Get the servlet config.java.lang.String
getServletInfo()
Get the servlet information.void
init(ServletConfig servletConfig)
Initialize the servlet.void
service(ServletRequest request, ServletResponse response)
Process the request.
-
Method Details
-
destroy
void destroy()Destroy the servlet. -
getServletConfig
ServletConfig getServletConfig()Get the servlet config.- Returns:
- the servlet config.
-
getServletInfo
java.lang.String getServletInfo()Get the servlet information.- Returns:
- the servlet information.
-
init
Initialize the servlet.- Parameters:
servletConfig
- the servlet config.- Throws:
ServletException
- when a servlet error occurs.
-
service
void service(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletExceptionProcess the request.- Parameters:
request
- the request.response
- the response.- Throws:
java.io.IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-