ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer Class Reference

Implementation of BatchRenderer which catches exceptions raised when rendering documents and rolls the failures into the output. More...

Inheritance diagram for CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer:
Collaboration diagram for CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer:

Public Member Functions

 ErrorTolerantBatchRenderer (IRenderingJobFactory renderingJobFactory=null)
 Initializes a new instance of the CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer class. More...
 
- Public Member Functions inherited from CSF.Zpt.BatchRendering.BatchRenderer
virtual IBatchRenderingResponse Render (IBatchRenderingOptions batchOptions, IRenderingSettings settings)
 Parse and render the documents found using the given batch rendering options. More...
 
virtual IBatchRenderingResponse Render (IBatchRenderingOptions batchOptions, IRenderingOptions options=null)
 Parse and render the documents found using the given batch rendering options. More...
 
virtual Action
< IModelValueContainer
GetContextConfigurator (IRenderingJob job)
 Gets the rendering context configurator for a given job. More...
 
 BatchRenderer (IRenderingJobFactory renderingJobFactory=null, IRenderingSettingsFactory settingsFactory=null, IBatchRenderingOptionsValidator optionsValidator=null)
 Initializes a new instance of the CSF.Zpt.BatchRendering.BatchRenderer class. More...
 

Protected Member Functions

override
IBatchRenderingDocumentResponse 
Render (IZptDocument doc, Stream outputStream, IRenderingSettings options, Action< IModelValueContainer > contextConfigurator, string outputInfo)
 Renders a single ZPT document and returns a response. More...
 
- Protected Member Functions inherited from CSF.Zpt.BatchRendering.BatchRenderer
virtual
IBatchRenderingDocumentResponse 
Render (IRenderingJob job, IRenderingSettings options, IBatchRenderingOptions batchOptions, Action< IModelValueContainer > contextConfigurator)
 Renders a single rendering job and returns a response. More...
 
virtual IEnumerable
< IRenderingJob
GetRenderingJobs (IBatchRenderingOptions options, RenderingMode?mode)
 Gets the rendering jobs from the rendering job factory. More...
 
virtual void ValidateBatchOptions (IBatchRenderingOptions options)
 Validates the batch rendering options. More...
 
virtual IZptDocument GetDocument (IRenderingJob job)
 Gets the document for a given rendering job. More...
 
virtual string GetOutputInfo (IRenderingJob job, IBatchRenderingOptions batchOptions)
 Gets the output info for a given rendering job. More...
 
virtual Stream GetOutputStream (IRenderingJob job, IBatchRenderingOptions batchOptions)
 Gets the output stream for a given rendering job. More...
 

Detailed Description

Implementation of BatchRenderer which catches exceptions raised when rendering documents and rolls the failures into the output.

Constructor & Destructor Documentation

CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer.ErrorTolerantBatchRenderer ( IRenderingJobFactory  renderingJobFactory = null)
inline

Initializes a new instance of the CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer class.

Parameters
renderingJobFactoryRendering job factory.

Member Function Documentation

override IBatchRenderingDocumentResponse CSF.Zpt.BatchRendering.ErrorTolerantBatchRenderer.Render ( IZptDocument  doc,
Stream  outputStream,
IRenderingSettings  options,
Action< IModelValueContainer contextConfigurator,
string  outputInfo 
)
inlineprotectedvirtual

Renders a single ZPT document and returns a response.

Parameters
docThe document to render.
outputStreamThe output stream.
optionsRendering options.
contextConfiguratorContext configurator.
outputInfoOutput info.

Reimplemented from CSF.Zpt.BatchRendering.BatchRenderer.


The documentation for this class was generated from the following file: