public class XmlToOutputHandler extends AbstractXmlTransformer implements DiscoverableTransformer
AbstractXmlTransformer.ResultHolder
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
DEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING
PHASE_NAME
Constructor and Description |
---|
XmlToOutputHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
doTransform(Object src,
String encoding) |
int |
getPriorityWeighting()
If 2 or more discoverable transformers are equal, this value can be used to select the correct one
|
void |
setPriorityWeighting(int priorityWeighting)
If 2 or more discoverable transformers are equal, this value can be used to select the correct one
|
protected void |
writeXml(Object src,
String encoding,
OutputStream out) |
convertToBytes, convertToText, convertToText, getOutputEncoding, getResultHolder, getXMLInputFactory, getXMLOutputFactory, isUseStaxSource, setOutputEncoding, setUseStaxSource, setXMLInputFactory, setXMLOutputFactory, writeToStream
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
public Object doTransform(Object src, String encoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
protected void writeXml(Object src, String encoding, OutputStream out) throws TransformerFactoryConfigurationError, IOException
public int getPriorityWeighting()
DiscoverableTransformer
getPriorityWeighting
in interface DiscoverableTransformer
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING
and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING
.public void setPriorityWeighting(int priorityWeighting)
DiscoverableTransformer
setPriorityWeighting
in interface DiscoverableTransformer
priorityWeighting
- the priority weighting for this transformer. This is a value between
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING
and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING
.Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.