Class HttpFrameworkServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.forgerock.http.servlet.HttpFrameworkServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public final class HttpFrameworkServlet extends jakarta.servlet.http.HttpServlet

An HTTP servlet implementation which provides integration between the Servlet API and the common HTTP Framework.

A HttpApplication implementation must be registered in the ServiceLoader framework

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Servlet init-param for configuring the routing base for the HttpApplication.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for use via web.xml declaration.
    Creates a new HttpFrameworkServlet programmatically using the specified HttpApplication.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    protected void
    service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service

    Methods inherited from class jakarta.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
    • service

      protected void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Overrides:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Servlet
      Overrides:
      destroy in class jakarta.servlet.GenericServlet