Package com.avoka.fc.core.servlet
Class SubmissionServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.avoka.fc.core.servlet.BaseServlet
com.avoka.fc.core.servlet.SubmissionServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
executeRequest
(HttpServletRequest request, HttpServletResponse response) Handle the form submission.protected Properties
protected SubmissionTargetResolver
protected void
handleException
(Throwable error, String userName, HttpServletRequest request, HttpServletResponse response, SubmissionDataBean submissionData) protected boolean
isValidRequest
(HttpServletRequest request, HttpServletResponse response) protected void
redirectToSubmissionErrorsPage
(HttpServletRequest request, HttpServletResponse response, SubmissionDataBean submissionDataBean, SubmissionException submissionException) protected void
renderReceipt
(Submission submission, HttpServletRequest request, HttpServletResponse response) protected void
sendRedirect
(HttpServletRequest request, 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 javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, 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
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, HttpServletRequest request, HttpServletResponse response) -
isValidRequest
-
handleException
protected void handleException(Throwable error, String userName, HttpServletRequest request, HttpServletResponse response, SubmissionDataBean submissionData) -
redirectToSubmissionErrorsPage
protected void redirectToSubmissionErrorsPage(HttpServletRequest request, HttpServletResponse response, SubmissionDataBean submissionDataBean, SubmissionException submissionException) -
sendRedirect
protected void sendRedirect(HttpServletRequest request, HttpServletResponse response, String path) throws ApplicationException - Overrides:
sendRedirect
in classBaseServlet
- Throws:
ApplicationException
-
getSubmissionTargetResolver
-
getProperties
-