Package com.avoka.fc.core.servlet
Class RenderServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.avoka.fc.core.servlet.BaseServlet
-
- com.avoka.fc.core.servlet.RenderServlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
- Direct Known Subclasses:
FormRenderServlet
,HtmlFormRenderServlet
,ReceiptRenderServlet
public abstract class RenderServlet extends BaseServlet
Provides a base servlet class for various kind of render servlet.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RenderServlet.RenderContext
Provides a render context class.
-
Field Summary
Fields Modifier and Type Field Description protected FormDao
formDao
protected PortalPropertyDao
ppDao
protected SubmissionDao
submissionDao
protected UserAccountDao
userAccountDao
-
Fields inherited from class com.avoka.fc.core.servlet.BaseServlet
PAGE_InvalidRequest, PAGE_Offline
-
-
Constructor Summary
Constructors Constructor Description RenderServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestLog
createRequestLog(RenderServlet.RenderContext context)
Create a RequestLog record for the given request context.protected IAuthenticationService
getAuthenticationService()
Return the Authentication Serviceprotected String
getFormNotFoundPath()
Return the form not found path.protected boolean
isAcceptXmlPrefill()
Return true if the servlet should accept XML based form prefill, or false otherwise.protected void
storeSubmissionFormXml(Submission submission, RenderServlet.RenderContext context, Document storeDoc)
Store the submission form XML data.-
Methods inherited from class com.avoka.fc.core.servlet.BaseServlet
doGet, doPost, executeRequest, getDataContext, getDeploymentPropertyDao, getErrorLogService, getErrorPagePath, getLogger, getMultiPartRequestMap, getParameterString, getParameterString, getParameterStringTrim, getRequest, getRequestParameters, getResponse, handleException, handleRequest, listServletInfo, sendRedirect, 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
-
formDao
protected FormDao formDao
-
submissionDao
protected SubmissionDao submissionDao
-
ppDao
protected PortalPropertyDao ppDao
-
userAccountDao
protected UserAccountDao userAccountDao
-
-
Method Detail
-
storeSubmissionFormXml
protected void storeSubmissionFormXml(Submission submission, RenderServlet.RenderContext context, Document storeDoc)
Store the submission form XML data.- Parameters:
submission
- the submission record (required)context
- the render context (required)storeDoc
- the form data to store (required)- Since:
- 17.10.3
-
isAcceptXmlPrefill
protected boolean isAcceptXmlPrefill()
Return true if the servlet should accept XML based form prefill, or false otherwise.- Returns:
- true if the servlet should accept XML based form prefill, or false otherwise
- Since:
- 3.6.0
-
getFormNotFoundPath
protected String getFormNotFoundPath()
Return the form not found path.- Returns:
- the form not found path
-
createRequestLog
protected RequestLog createRequestLog(RenderServlet.RenderContext context)
Create a RequestLog record for the given request context.- Parameters:
context
- the render context- Returns:
- a new RequestLog record
-
getAuthenticationService
protected IAuthenticationService getAuthenticationService()
Return the Authentication Service- Returns:
- the Authentication Service
-
-