public interface StreamableMacro extends Macro
Error handling: MacroExecutionExceptions thrown from execute()
will be handled normally, and
the macro output will be replaced with the appropriate error message. This service is not available to the
streamable's writeTo()
method. If an error is likely to occur during streaming of the output, the macro
must handle processing and displaying the error itself.
Macro.BodyType, Macro.OutputType
Modifier and Type | Method and Description |
---|---|
Streamable |
executeToStream(Map<String,String> parameters,
Streamable body,
ConversionContext context)
Execute the macro, and produce a streamable that represents its output.
|
execute, getBodyType, getOutputType
Streamable executeToStream(Map<String,String> parameters, Streamable body, ConversionContext context) throws MacroExecutionException
parameters
- the parameters with which to execute the macrobody
- the body of the macro provided as a streamable, processed according to Macro.getBodyType()
context
- the conversion context of the current rendering pipelineMacroExecutionException
- if a processing, parsing or parameter validation error occurs during parsingMacro.execute(java.util.Map, String, com.atlassian.confluence.content.render.xhtml.ConversionContext)
Copyright © 2003–2017 Atlassian. All rights reserved.