Package com.avoka.fc.core.servlet
Class SubmissionServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.avoka.fc.core.servlet.BaseServlet
com.avoka.fc.core.servlet.SubmissionServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
Form submission handling Servlet.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Properties
static final String
The property file path.static final String
The submission servlet url.Fields inherited from class com.avoka.fc.core.servlet.BaseServlet
PAGE_InvalidRequest, PAGE_Offline
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handle the form submission.protected Properties
protected SubmissionTargetResolver
protected void
handleException
(Throwable error, String userName, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SubmissionDataBean submissionData) protected boolean
isValidRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
redirectToSubmissionErrorsPage
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SubmissionDataBean submissionDataBean, SubmissionException submissionException) protected void
renderReceipt
(Submission submission, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
sendRedirect
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) Methods inherited from class com.avoka.fc.core.servlet.BaseServlet
doGet, doPost, getDataContext, getDeploymentPropertyDao, getErrorPagePath, getLogger, getMultiPartRequestMap, getParameterString, getParameterString, getParameterStringTrim, getRequest, getRequestParameters, getResponse, handleException, handleRequest, hasPermission, hasPermission, hasPermission, listServletInfo, sendResponseError
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
SERVLET_URL
The submission servlet url.- See Also:
-
PROPERTIES_PATH
The property file path.- See Also:
-
properties
-
-
Constructor Details
-
SubmissionServlet
public SubmissionServlet()
-
-
Method Details
-
getErrorLogService
- Specified by:
getErrorLogService
in classBaseServlet
- Returns:
- the error log service
- Since:
- 4.3.4
-
executeRequest
protected void executeRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handle the form submission.- Specified by:
executeRequest
in classBaseServlet
- Parameters:
request
- the request send by the client to the serverresponse
- the response send by the server to the client- Throws:
ApplicationException
- See Also:
-
renderReceipt
protected void renderReceipt(Submission submission, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
isValidRequest
protected boolean isValidRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
handleException
protected void handleException(Throwable error, String userName, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SubmissionDataBean submissionData) -
redirectToSubmissionErrorsPage
protected void redirectToSubmissionErrorsPage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SubmissionDataBean submissionDataBean, SubmissionException submissionException) -
sendRedirect
protected void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws ApplicationException - Overrides:
sendRedirect
in classBaseServlet
- Throws:
ApplicationException
-
getSubmissionTargetResolver
-
getProperties
-