Class JsAppComposerRenderAdapter

java.lang.Object
com.avoka.fc.core.service.composer.JsAppComposerRenderAdapter
All Implemented Interfaces:
IComposerHtmlFormRenderService

public class JsAppComposerRenderAdapter extends Object implements IComposerHtmlFormRenderService
Provides IComposerHtmlFormRenderService interface adaptor for the JsAppFormRenderService.
Since:
18.11.0
  • Constructor Details

    • JsAppComposerRenderAdapter

      public JsAppComposerRenderAdapter()
  • Method Details

    • renderForm

      public void renderForm(TemplateVersion templateVersion, Form form, String xmlData, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String targetUrl, RequestLog requestLog)
      This method provides a IComposerHtmlFormRenderService interface adaptor.
      Specified by:
      renderForm in interface IComposerHtmlFormRenderService
      Parameters:
      templateVersion - the form template version to render (required)
      form - the form to render (ignored)
      xmlData - the XML form data seed document (ignored)
      request - the users Http servlet request (optional)
      response - the Http servlet response to render to (required)
      targetUrl - the target URL of the submission servlet (ignored)
      requestLog - optional request log parameter (required)
    • renderForm

      public void renderForm(TemplateVersion templateVersion, Form form, String xmlData, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String targetUrl, RequestLog requestLog, Submission submission)
      This method provides a IComposerHtmlFormRenderService interface adaptor.
      Specified by:
      renderForm in interface IComposerHtmlFormRenderService
      Parameters:
      templateVersion - the form template version to render (required)
      form - the form to render (ignored)
      xmlData - the XML form data seed document (ignored)
      request - the users Http servlet request (optional)
      response - the Http servlet response to render to (required)
      targetUrl - the target URL of the submission servlet (ignored)
      requestLog - optional request log parameter (required)
      submission - submission object
      Since:
      23.10.0
    • setReceiptRenderMode

      public void setReceiptRenderMode(boolean receiptMode)
      Set the rendering receipt mode
      Specified by:
      setReceiptRenderMode in interface IComposerHtmlFormRenderService
      Parameters:
      receiptMode - set whether in headless receipt render mode.
    • renderResource

      public boolean renderResource(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      This interface adaptor method does nothing.
      Specified by:
      renderResource in interface IComposerHtmlFormRenderService
      Parameters:
      request - the users Http servlet request
      response - the Http servlet response to render to
      Returns:
      returns false
      Throws:
      IOException - if an error occurs rendering the resource
    • getRenderFormTemplateType

      public String getRenderFormTemplateType(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion templateVersion)
      This interface adaptor method does nothing.
      Specified by:
      getRenderFormTemplateType in interface IComposerHtmlFormRenderService
      Parameters:
      request - the form request
      form - the form
      templateVersion - the form template version
      Returns:
      returns null
    • getComposerFormVersion

      public Double getComposerFormVersion(jakarta.servlet.http.HttpServletRequest request, Form form, TemplateVersion templateVersion)
      This interface adaptor method does nothing.
      Specified by:
      getComposerFormVersion in interface IComposerHtmlFormRenderService
      Parameters:
      request - the form request
      form - the form
      templateVersion - the form template version
      Returns:
      returns null
    • getBrowserResourceCachePeriod

      public Long getBrowserResourceCachePeriod()
      This interface adaptor method does nothing.
      Specified by:
      getBrowserResourceCachePeriod in interface IComposerHtmlFormRenderService
      Returns:
      returns null
    • setBrowserResourceCachePeriod

      public void setBrowserResourceCachePeriod(Long period)
      This interface adaptor method does nothing.
      Specified by:
      setBrowserResourceCachePeriod in interface IComposerHtmlFormRenderService
      Parameters:
      period - this parameter is ignored
    • getCompressContent

      public Boolean getCompressContent()
      This interface adaptor method does nothing.
      Specified by:
      getCompressContent in interface IComposerHtmlFormRenderService
      Returns:
      returns null
    • setCompressContent

      public void setCompressContent(Boolean compress)
      This interface adaptor method does nothing.
      Specified by:
      setCompressContent in interface IComposerHtmlFormRenderService
      Parameters:
      compress - this parameter is ignored
    • getJsRenderMode

      public String getJsRenderMode()
      This interface adaptor method does nothing.
      Specified by:
      getJsRenderMode in interface IComposerHtmlFormRenderService
      Returns:
      returns null
    • setJsRenderMode

      public void setJsRenderMode(String jsRenderMode)
      This inferface adaptor method does nothing.
      Specified by:
      setJsRenderMode in interface IComposerHtmlFormRenderService
      Parameters:
      jsRenderMode - this parameter is ignored
    • getCssRenderMode

      public String getCssRenderMode()
      This interface adaptor method does nothing.
      Specified by:
      getCssRenderMode in interface IComposerHtmlFormRenderService
      Returns:
      returns null.
    • setCssRenderMode

      public void setCssRenderMode(String cssRenderMode)
      This interface adaptor method does nothing.
      Specified by:
      setCssRenderMode in interface IComposerHtmlFormRenderService
      Parameters:
      cssRenderMode - this parameter is ignored
    • getImgRenderMode

      public String getImgRenderMode()
      This interface adaptor method does nothing.
      Specified by:
      getImgRenderMode in interface IComposerHtmlFormRenderService
      Returns:
      returns null
    • setImgRenderMode

      public void setImgRenderMode(String imgRenderMode)
      This interface adaptor method does nothing.
      Specified by:
      setImgRenderMode in interface IComposerHtmlFormRenderService
      Parameters:
      imgRenderMode - this parameter is ignored
    • getAlwaysUse34RenderingMode

      public String getAlwaysUse34RenderingMode()
      This interface adaptor method does nothing.
      Specified by:
      getAlwaysUse34RenderingMode in interface IComposerHtmlFormRenderService
      Returns:
      returns null
    • setAlwaysUse34RenderingMode

      public void setAlwaysUse34RenderingMode(String allwaysUse34RenderingMode)
      This method does nothing.
      Specified by:
      setAlwaysUse34RenderingMode in interface IComposerHtmlFormRenderService
      Parameters:
      allwaysUse34RenderingMode - this parameter is ignored