Class ProcessDispatcherXDocReportServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
fr.opensagres.xdocreport.document.web.BaseXDocReportServlet
fr.opensagres.xdocreport.document.web.AbstractProcessXDocReportServlet
fr.opensagres.xdocreport.document.web.dispatcher.ProcessDispatcherXDocReportServlet
All Implemented Interfaces:
XDocBaseServletConstants, XDocProcessServletConstants, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class ProcessDispatcherXDocReportServlet extends AbstractProcessXDocReportServlet
See Also:
  • Field Details

  • Constructor Details

    • ProcessDispatcherXDocReportServlet

      public ProcessDispatcherXDocReportServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class AbstractProcessXDocReportServlet
      Throws:
      jakarta.servlet.ServletException
    • registerDispatcher

      public void registerDispatcher(IXDocReportDispatcher<?> dispatcher)
    • unregisterDispatcher

      public void unregisterDispatcher(IXDocReportDispatcher<?> dispatcher)
    • getSourceStream

      protected InputStream getSourceStream(String reportId, jakarta.servlet.http.HttpServletRequest request) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Description copied from class: AbstractProcessXDocReportServlet
      Returns input stream of the report to load identified with reportId.
      Specified by:
      getSourceStream in class AbstractProcessXDocReportServlet
      Parameters:
      reportId - report id.
      request - Http servlet request context.
      Returns:
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • getTemplateEngineKind

      protected String getTemplateEngineKind(jakarta.servlet.http.HttpServletRequest request)
      Overrides:
      getTemplateEngineKind in class BaseXDocReportServlet
    • getFieldsMetadata

      protected fr.opensagres.xdocreport.template.formatter.FieldsMetadata getFieldsMetadata(String reportId, jakarta.servlet.http.HttpServletRequest request)
      Description copied from class: AbstractProcessXDocReportServlet
      Returns the fields metadata to use for the report.
      Overrides:
      getFieldsMetadata in class AbstractProcessXDocReportServlet
      Parameters:
      reportId - the report id.
      request - the HTTP request.
      Returns:
    • isCacheReport

      protected boolean isCacheReport(String reportId, jakarta.servlet.http.HttpServletRequest request)
      Description copied from class: AbstractProcessXDocReportServlet
      Returns true if the report with the given id must be cached and false otherwise.
      Overrides:
      isCacheReport in class AbstractProcessXDocReportServlet
      Parameters:
      reportId - the report id.
      request - the HTTP request.
      Returns:
      true if the report with the given id must be cached and false otherwise.
    • populateContext

      protected void populateContext(fr.opensagres.xdocreport.template.IContext context, String reportId, jakarta.servlet.http.HttpServletRequest request) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Description copied from class: AbstractProcessXDocReportServlet
      Put the Java model in the context for the report reportId.
      Specified by:
      populateContext in class AbstractProcessXDocReportServlet
      Parameters:
      context - XDocReport context to register Java data model.
      reportId - report id.
      request - Http servlet request context.
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • populateContext

      protected void populateContext(fr.opensagres.xdocreport.template.IContext context, IXDocReport report, jakarta.servlet.http.HttpServletRequest request)