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
public class SubmissionServlet extends BaseServlet
Form submission handling Servlet.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Properties
properties
static String
PROPERTIES_PATH
The property file path.static String
SERVLET_URL
The submission servlet url.-
Fields inherited from class com.avoka.fc.core.servlet.BaseServlet
PAGE_InvalidRequest, PAGE_Offline
-
-
Constructor Summary
Constructors Constructor Description SubmissionServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeRequest(HttpServletRequest request, HttpServletResponse response)
Handle the form submission.ErrorLogService
getErrorLogService()
protected Properties
getProperties()
protected SubmissionTargetResolver
getSubmissionTargetResolver()
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, 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 Detail
-
SERVLET_URL
public static final String SERVLET_URL
The submission servlet url.- See Also:
- Constant Field Values
-
PROPERTIES_PATH
public static final String PROPERTIES_PATH
The property file path.- See Also:
- Constant Field Values
-
properties
protected Properties properties
-
-
Method Detail
-
getErrorLogService
public ErrorLogService getErrorLogService()
- Specified by:
getErrorLogService
in classBaseServlet
- Returns:
- the error log service
- Since:
- 4.3.4
-
executeRequest
protected void executeRequest(HttpServletRequest request, 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:
BaseServlet.executeRequest(HttpServletRequest, HttpServletResponse)
-
renderReceipt
protected void renderReceipt(Submission submission, HttpServletRequest request, HttpServletResponse response)
-
isValidRequest
protected boolean isValidRequest(HttpServletRequest request, HttpServletResponse response)
-
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
protected SubmissionTargetResolver getSubmissionTargetResolver()
-
getProperties
protected Properties getProperties()
-
-