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
writeTo() method. If an error is likely to occur during streaming of the output, the macro
must handle processing and displaying the error itself.
|Modifier and Type||Method and Description|
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 macro
body- the body of the macro provided as a streamable, processed according to
context- the conversion context of the current rendering pipeline
MacroExecutionException- if a processing, parsing or parameter validation error occurs during parsing
Macro.execute(java.util.Map, String, com.atlassian.confluence.content.render.xhtml.ConversionContext)
Copyright © 2003–2016 Atlassian. All rights reserved.