Package org.apache.camel.spi
Interface ModelToXMLDumper
public interface ModelToXMLDumper
SPI for dumping model definitions into XML representation.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondumpModelAsXml(CamelContext context, NamedNode definition) Dumps the definition as XMLdumpModelAsXml(CamelContext context, NamedNode definition, boolean resolvePlaceholders, boolean resolveDelegateEndpoints) Dumps the definition as XML
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
dumpModelAsXml
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 aNamedNoderesolvePlaceholders- 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
-