- All Known Implementing Classes:
DefaultServlet
,GenericServlet
,HttpServlet
,SmallRyeHealthServlet
,SmallRyeLivenessServlet
,SmallRyeReadinessServlet
public interface Servlet
The Servlet API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy the servlet.Returns the servlet config.Returns 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()Returns the servlet config.- Returns:
- the servlet config
-
getServletInfo
String getServletInfo()Returns 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 IOException, ServletExceptionProcess the request.- Parameters:
request
- the request.response
- the response.- Throws:
IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-