Class ApiListenerServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.frankframework.http.AbstractHttpServlet
org.frankframework.http.rest.ApiListenerServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, DynamicRegistration, DynamicRegistration.Servlet

@IbisInitializer public class ApiListenerServlet extends AbstractHttpServlet
Author:
Niels Meijer
See Also:
  • Field Details

  • Constructor Details

    • ApiListenerServlet

      public ApiListenerServlet()
  • Method Details

    • init

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

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

      public void returnJson(jakarta.servlet.http.HttpServletResponse response, int status, jakarta.json.JsonObject json) throws IOException
      Throws:
      IOException
    • service

      protected void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Overrides:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException
    • getUrlMapping

      public String getUrlMapping()
      Tomcat matches /api to /api/*. Not every application server does this. In order to both fix Authentication request matching and the different Application Servers matching on different methods, explicitly add `/api`.