Package de.xima.fc.servlet
Class KeepAliveServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.xima.fc.servlet.KeepAliveServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="KeepAliveServlet", urlPatterns="/form/includes/extra/keep-alive", asyncSupported=true) public class KeepAliveServlet extends javax.servlet.http.HttpServletGeneric servlet for keeping a session alive- Since:
- 6.6.8
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeepAliveServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Handles GET requests to keep the HTTP session alive and refresh form tracking when a form request ID is provided.protected voiddoOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Handles OPTIONS requests to set CORS headers.protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Handles POST requests to keep the form session alive or to stop tracking.-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOExceptionHandles OPTIONS requests to set CORS headers. Responds with a 200 OK status.- Overrides:
doOptionsin classjavax.servlet.http.HttpServlet- Parameters:
req- The HTTP request.resp- The HTTP response.- Throws:
javax.servlet.ServletException- If an input or output error occurs while the servlet is handling the OPTIONS request.IOException- If the request for the OPTIONS could not be handled.
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOExceptionHandles GET requests to keep the HTTP session alive and refresh form tracking when a form request ID is provided.- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Parameters:
req- The HTTP request.resp- The HTTP response.- Throws:
javax.servlet.ServletException- If an input or output error occurs while the servlet is handling the GET request.IOException- If the request for the GET could not be handled.
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOExceptionHandles POST requests to keep the form session alive or to stop tracking. Responds with a JSON object indicating the status.- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Parameters:
req- The HTTP request.resp- The HTTP response.- Throws:
IOException- If an input or output error occurs while the servlet is handling the POST request.
-
-