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
- See Also:
-
Field Summary
FieldsFields inherited from interface fr.opensagres.xdocreport.document.web.XDocBaseServletConstants
DISPATCH_HTTP_PARAM, ENTRY_NAME_HTTP_PARAM, PROCESS_STATE_HTTP_PARAM, REPORT_ID_HTTP_PARAM, TEMPLATE_ENGINE_ID_HTTP_PARAM, TEMPLATE_ENGINE_KIND_HTTP_PARAM, XDOCREPORT_ATTR_KEY, XDOCREPORTREGISTRY_SESSION_KEYFields inherited from interface fr.opensagres.xdocreport.document.web.XDocProcessServletConstants
CONVERTER_ID_HTTP_PARAM, DOWNLOAD_DISPATCH, DUMPER_KIND_HTTP_PARAM, FONT_ENCODING_HTTP_PARAM, REMOVE_DISPATCH, VIEW_DISPATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected fr.opensagres.xdocreport.template.formatter.FieldsMetadatagetFieldsMetadata(String reportId, jakarta.servlet.http.HttpServletRequest request) Returns the fields metadata to use for the report.protected InputStreamgetSourceStream(String reportId, jakarta.servlet.http.HttpServletRequest request) Returns input stream of the report to load identified withreportId.protected StringgetTemplateEngineKind(jakarta.servlet.http.HttpServletRequest request) voidinit(jakarta.servlet.ServletConfig config) protected booleanisCacheReport(String reportId, jakarta.servlet.http.HttpServletRequest request) Returns true if the report with the given id must be cached and false otherwise.protected voidpopulateContext(fr.opensagres.xdocreport.template.IContext context, IXDocReport report, jakarta.servlet.http.HttpServletRequest request) protected voidpopulateContext(fr.opensagres.xdocreport.template.IContext context, String reportId, jakarta.servlet.http.HttpServletRequest request) Put the Java model in the context for the reportreportId.voidregisterDispatcher(IXDocReportDispatcher<?> dispatcher) voidunregisterDispatcher(IXDocReportDispatcher<?> dispatcher) Methods inherited from class fr.opensagres.xdocreport.document.web.AbstractProcessXDocReportServlet
createWEBURIResolver, doDocumentArchive, doGenerateReport, doRedirectAfterRemoveReport, doRemoveReport, doSaveEntry, doSaveReport, error, getConverterId, getDumperKind, getFontEncoding, getOptionsConverter, getOptionsDumper, getReport, isCacheOriginalDocument, isGenerateContentDisposition, loadReport, prepareOptions, processRequestMethods inherited from class fr.opensagres.xdocreport.document.web.BaseXDocReportServlet
clearRegistryFromHTTPSession, disableHTTPResponCache, doGet, doPost, getContentDisposition, getContentDisposition, getDispatchParameter, getEntryName, getProcessState, getRegistry, getRegistryFromHTTPSession, getReportId, getTemplateEngine, getTemplateEngine, getTemplateEngine, getTemplateEngineId, getTemplateEngineKind, isDisableHTTPResponCache, prepareHTTPResponse, prepareHTTPResponseMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
dispatchers
-
-
Constructor Details
-
ProcessDispatcherXDocReportServlet
public ProcessDispatcherXDocReportServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classAbstractProcessXDocReportServlet- Throws:
jakarta.servlet.ServletException
-
registerDispatcher
-
unregisterDispatcher
-
getSourceStream
protected InputStream getSourceStream(String reportId, jakarta.servlet.http.HttpServletRequest request) throws IOException, fr.opensagres.xdocreport.core.XDocReportException Description copied from class:AbstractProcessXDocReportServletReturns input stream of the report to load identified withreportId.- Specified by:
getSourceStreamin classAbstractProcessXDocReportServlet- Parameters:
reportId- report id.request- Http servlet request context.- Returns:
- Throws:
IOExceptionfr.opensagres.xdocreport.core.XDocReportException
-
getTemplateEngineKind
- Overrides:
getTemplateEngineKindin classBaseXDocReportServlet
-
getFieldsMetadata
protected fr.opensagres.xdocreport.template.formatter.FieldsMetadata getFieldsMetadata(String reportId, jakarta.servlet.http.HttpServletRequest request) Description copied from class:AbstractProcessXDocReportServletReturns the fields metadata to use for the report.- Overrides:
getFieldsMetadatain classAbstractProcessXDocReportServlet- Parameters:
reportId- the report id.request- the HTTP request.- Returns:
-
isCacheReport
Description copied from class:AbstractProcessXDocReportServletReturns true if the report with the given id must be cached and false otherwise.- Overrides:
isCacheReportin classAbstractProcessXDocReportServlet- 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:AbstractProcessXDocReportServletPut the Java model in the context for the reportreportId.- Specified by:
populateContextin classAbstractProcessXDocReportServlet- Parameters:
context- XDocReport context to register Java data model.reportId- report id.request- Http servlet request context.- Throws:
IOExceptionfr.opensagres.xdocreport.core.XDocReportException
-
populateContext
protected void populateContext(fr.opensagres.xdocreport.template.IContext context, IXDocReport report, jakarta.servlet.http.HttpServletRequest request)
-