Class DefaultTemplateProcessingResult
java.lang.Object
com.flowable.template.engine.impl.processor.DefaultTemplateProcessingResult
- All Implemented Interfaces:
TemplateProcessingResult
The default template processing result, holding the processed content as well as the template definition and variation used to process the result.
- Author:
- Micha Kiener
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected ContentItem
protected String
protected TemplateHolder
-
Constructor Summary
ConstructorDescriptionDefaultTemplateProcessingResult
(TemplateHolder templateHolder, String processedContent) DefaultTemplateProcessingResult
(TemplateHolder templateHolder, String processedContent, ContentItem contentItem, byte[] bytes) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
If the processed result is stored as a content item, this will return it.Returns the processed result as anInputStream
.Returns the processed content as a string (in case the content is processed directly).Returns the template holder containing all information like template definition and variation which was used to produce the result.void
setBytes
(byte[] bytes) void
setContentItem
(ContentItem contentItem) void
setProcessedContent
(String processedContent) void
setTemplateHolder
(TemplateHolder templateHolder)
-
Field Details
-
templateHolder
-
processedContent
-
contentItem
-
bytes
protected byte[] bytes
-
-
Constructor Details
-
DefaultTemplateProcessingResult
-
DefaultTemplateProcessingResult
public DefaultTemplateProcessingResult(TemplateHolder templateHolder, String processedContent, ContentItem contentItem, byte[] bytes)
-
-
Method Details
-
getTemplateHolder
Description copied from interface:TemplateProcessingResult
Returns the template holder containing all information like template definition and variation which was used to produce the result.- Specified by:
getTemplateHolder
in interfaceTemplateProcessingResult
-
setTemplateHolder
-
getProcessedContent
Description copied from interface:TemplateProcessingResult
Returns the processed content as a string (in case the content is processed directly).- Specified by:
getProcessedContent
in interfaceTemplateProcessingResult
-
setProcessedContent
-
getInputStream
Description copied from interface:TemplateProcessingResult
Returns the processed result as anInputStream
. Callers are responsible for closing the stream.- Specified by:
getInputStream
in interfaceTemplateProcessingResult
-
getContentItem
Description copied from interface:TemplateProcessingResult
If the processed result is stored as a content item, this will return it.- Specified by:
getContentItem
in interfaceTemplateProcessingResult
-
setContentItem
-
getBytes
public byte[] getBytes() -
setBytes
public void setBytes(byte[] bytes)
-