Class PluggableTransformerChain
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain
-
- All Implemented Interfaces:
Transformer
public class PluggableTransformerChain extends Object implements Transformer
ATransformer
which passes the input through a series of other transformers provided by enabled plugins'TransformerModuleDescriptor
s, in addition to a set of defaults transformers.WARNING: This class if prone to
OutOfMemoryError
s 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 String
transform(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:
transform
in interfaceTransformer
- Returns:
- Throws:
XhtmlParsingException
- if there is a problem parsing the input parameter.XhtmlException
- for all other errors that may occur during transformation.
-
-