Package de.xima.fc.servlet
Class FormVerifyServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- de.xima.fc.servlet.AFormProcessingServlet
-
- de.xima.fc.servlet.FormVerifyServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
@WebServlet(name="FormVerifyServlet", urlPatterns="/form/verify/*", asyncSupported=true) public class FormVerifyServlet extends AFormProcessingServlet
The verify servlet is used for the double opt-in link. When a form is submitted and the double opt-in process is started, a mail is sent to the user asking them to confirm their submission. Until they do, the submitted data and the form record is locked and cannot be accessed. The form record is unlocked once they click on the link. The link is a one-time only link. Attempting to open the link multiple times results in an error page.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormVerifyServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkProcessCtx(IExtendedFormRequestContext ctx)
Validates the form request context, ie. if the user is allowed to perform the requested action.protected IExtendedFormRequestContext
createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected void
respondWorkflowAfterSubmit(IFormProcessContext processCtx, IExtendedFormRequestContext requestCtx)
-
Methods inherited from class de.xima.fc.servlet.AFormProcessingServlet
doGet, doOptions, doPost, exec, processHttp, startVorgang
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
process
protected void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws UnsupportedEncodingException
- Overrides:
process
in classAFormProcessingServlet
- Throws:
UnsupportedEncodingException
-
createFormRequestContext
protected IExtendedFormRequestContext createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ContextBuilderException
- Specified by:
createFormRequestContext
in classAFormProcessingServlet
- Parameters:
uc
- Current user context.req
- Current HTTP request.resp
- Current HTTP response.- Returns:
- The processing context that is to be used for this request.
- Throws:
ContextBuilderException
- Allowed to be thrown when the processing context could not be built.
-
checkProcessCtx
protected boolean checkProcessCtx(IExtendedFormRequestContext ctx)
Description copied from class:AFormProcessingServlet
Validates the form request context, ie. if the user is allowed to perform the requested action.- Specified by:
checkProcessCtx
in classAFormProcessingServlet
- Parameters:
ctx
- Current request context.- Returns:
- Whether the request is allowed.
-
respondWorkflowAfterSubmit
protected void respondWorkflowAfterSubmit(IFormProcessContext processCtx, IExtendedFormRequestContext requestCtx) throws IOException
- Specified by:
respondWorkflowAfterSubmit
in classAFormProcessingServlet
- Throws:
IOException
-
-