Interface Servlet

All Known Implementing Classes:
DefaultServlet, GenericServlet, HttpServlet, SmallRyeHealthServlet, SmallRyeLivenessServlet, SmallRyeReadinessServlet

public interface Servlet
The Servlet API.
Author:
Manfred Riem ([email protected])
  • 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

      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 java.io.IOException, ServletException
      Process 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.