Package org.frankframework.http.rest
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
- Author:
- Niels Meijer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.frankframework.lifecycle.DynamicRegistration
DynamicRegistration.Servlet, DynamicRegistration.ServletWithParameters -
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEADFields inherited from interface org.frankframework.lifecycle.DynamicRegistration
ALL_IBIS_ROLES, ALL_IBIS_USER_ROLES, IBIS_FULL_SERVICE_ACCESS_ROLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Tomcat matches /api to /api/*.voidinit()voidreturnJson(jakarta.servlet.http.HttpServletResponse response, int status, jakarta.json.JsonObject json) protected voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class org.frankframework.http.AbstractHttpServlet
getAccessGrantingRoles, getNameMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, logMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.lifecycle.DynamicRegistration
loadOnStartUpMethods inherited from interface org.frankframework.lifecycle.DynamicRegistration.Servlet
isEnabledMethods inherited from interface jakarta.servlet.Servlet
getServletConfig, getServletInfo, init, service
-
Field Details
-
AUTHENTICATION_COOKIE_NAME
- See Also:
-
UPDATE_ETAG_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
ApiListenerServlet
public ApiListenerServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Servlet- Overrides:
destroyin classjakarta.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:
servicein classjakarta.servlet.http.HttpServlet- Throws:
IOException
-
getUrlMapping
Tomcat matches /api to /api/*. Not every application server does this. In order to both fixAuthentication request matchingand the different Application Servers matching on different methods, explicitly add `/api`.
-