fr.opensagres.xdocreport.document.web.dispatcher
Class ProcessDispatcherXDocReportServlet

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

public class ProcessDispatcherXDocReportServlet
extends AbstractProcessXDocReportServlet

See Also:
Serialized Form

Field Summary
protected  List<IXDocReportDispatcher<?>> dispatchers
           
 
Fields 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
 
Fields 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_KEY
 
Constructor Summary
ProcessDispatcherXDocReportServlet()
           
 
Method Summary
protected  FieldsMetadata getFieldsMetadata(String reportId, javax.servlet.http.HttpServletRequest request)
           
protected  InputStream getSourceStream(String reportId, javax.servlet.http.HttpServletRequest request)
          Returns input stream of the report to load identified with reportId.
protected  String getTemplateEngineKind(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.ServletConfig config)
           
protected  void populateContext(IContext context, IXDocReport report, javax.servlet.http.HttpServletRequest request)
           
protected  void populateContext(IContext context, String reportId, javax.servlet.http.HttpServletRequest request)
          Put the Java model in the context for the report reportId.
 void registerDispatcher(IXDocReportDispatcher<?> dispatcher)
           
 void unregisterDispatcher(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, processRequest
 
Methods 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, prepareHTTPResponse
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatchers

protected final List<IXDocReportDispatcher<?>> dispatchers
Constructor Detail

ProcessDispatcherXDocReportServlet

public ProcessDispatcherXDocReportServlet()
Method Detail

init

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

registerDispatcher

public void registerDispatcher(IXDocReportDispatcher<?> dispatcher)

unregisterDispatcher

public void unregisterDispatcher(IXDocReportDispatcher<?> dispatcher)

getSourceStream

protected InputStream getSourceStream(String reportId,
                                      javax.servlet.http.HttpServletRequest request)
                               throws IOException,
                                      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
XDocReportException

getTemplateEngineKind

protected String getTemplateEngineKind(javax.servlet.http.HttpServletRequest request)
Overrides:
getTemplateEngineKind in class BaseXDocReportServlet

getFieldsMetadata

protected FieldsMetadata getFieldsMetadata(String reportId,
                                           javax.servlet.http.HttpServletRequest request)
Overrides:
getFieldsMetadata in class AbstractProcessXDocReportServlet

populateContext

protected void populateContext(IContext context,
                               String reportId,
                               javax.servlet.http.HttpServletRequest request)
                        throws IOException,
                               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
XDocReportException

populateContext

protected void populateContext(IContext context,
                               IXDocReport report,
                               javax.servlet.http.HttpServletRequest request)


Copyright © 2013. All rights reserved.