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