Class PluggableTransformerChain
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain
-
- All Implemented Interfaces:
Transformer
public class PluggableTransformerChain extends Object implements Transformer
ATransformerwhich passes the input through a series of other transformers provided by enabled plugins'TransformerModuleDescriptors, in addition to a set of defaults transformers.WARNING: This class if prone to
OutOfMemoryErrors when the input is large.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description PluggableTransformerChain(com.atlassian.plugin.PluginAccessor pluginAccessor, List<TransformerWeight> defaultTransformers, @NonNull String transformerChainName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringtransform(Reader input, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
PluggableTransformerChain
public PluggableTransformerChain(com.atlassian.plugin.PluginAccessor pluginAccessor, List<TransformerWeight> defaultTransformers, @NonNull String transformerChainName)
-
-
Method Detail
-
transform
public String transform(Reader input, ConversionContext conversionContext) throws XhtmlException
- Specified by:
transformin interfaceTransformer- Returns:
- Throws:
XhtmlParsingException- if there is a problem parsing the input parameter.XhtmlException- for all other errors that may occur during transformation.
-
-