Package org.apache.camel.spi
Interface ModelToXMLDumper
-
public interface ModelToXMLDumper
SPI for dumping model definitions into XML representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
dumpModelAsXml(CamelContext context, NamedNode definition)
Dumps the definition as XMLString
dumpModelAsXml(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean resolveDelegateEndpoints)
Dumps the definition as XML
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
dumpModelAsXml
String dumpModelAsXml(CamelContext context, NamedNode definition) throws Exception
Dumps the definition as XML
-
dumpModelAsXml
String dumpModelAsXml(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean resolveDelegateEndpoints) throws Exception
Dumps the definition as XML- Parameters:
context
- the CamelContextdefinition
- the definition, such as aNamedNode
resolvePlaceholders
- whether to resolve property placeholders in the dumped XMLresolveDelegateEndpoints
- whether to resolve delegate endpoints in the dumped XML (limited to endpoints used in uri attributes in the model)- Returns:
- the output in XML (is formatted)
- Throws:
Exception
- is throw if error marshalling to XML
-
-