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

public class SubmissionServlet extends BaseServlet
Form submission handling Servlet.
See Also:
  • Field Details

  • Constructor Details

    • SubmissionServlet

      public SubmissionServlet()
  • Method Details

    • getErrorLogService

      public ErrorLogService getErrorLogService()
      Specified by:
      getErrorLogService in class BaseServlet
      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 class BaseServlet
      Parameters:
      request - the request send by the client to the server
      response - 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 class BaseServlet
      Throws:
      ApplicationException
    • getSubmissionTargetResolver

      protected SubmissionTargetResolver getSubmissionTargetResolver()
    • getProperties

      protected Properties getProperties()