public class SmooksProcessor extends Object implements org.apache.camel.Processor, org.apache.camel.Service, org.apache.camel.CamelContextAware
Processor
for Camel.Modifier and Type | Field and Description |
---|---|
static String |
CAMEL_CHARACTER_ENCODING |
static String |
SMOOKS_EXECUTION_CONTEXT |
Constructor and Description |
---|
SmooksProcessor(org.apache.camel.CamelContext camelContext) |
SmooksProcessor(Smooks smooks,
org.apache.camel.CamelContext camelContext) |
SmooksProcessor(String configUri,
org.apache.camel.CamelContext camelContext) |
Modifier and Type | Method and Description |
---|---|
SmooksProcessor |
addVisitor(VisitorAppender appender)
Add a visitor instance to
this Smooks instance via a
VisitorAppender . |
SmooksProcessor |
addVisitor(Visitor visitor,
String targetSelector)
Add a visitor instance.
|
org.apache.camel.CamelContext |
getCamelContext() |
String |
getSmooksConfig() |
void |
process(org.apache.camel.Exchange exchange) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setReportPath(String reportPath) |
protected void |
setResultOnBody(Exports exports,
Result[] results,
org.apache.camel.Exchange exchange) |
void |
setSmooksConfig(String smooksConfig) |
void |
start() |
void |
stop() |
String |
toString() |
public static final String SMOOKS_EXECUTION_CONTEXT
public static final String CAMEL_CHARACTER_ENCODING
public SmooksProcessor(org.apache.camel.CamelContext camelContext)
public SmooksProcessor(Smooks smooks, org.apache.camel.CamelContext camelContext)
public SmooksProcessor(String configUri, org.apache.camel.CamelContext camelContext) throws IOException, SAXException
IOException
SAXException
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
protected void setResultOnBody(Exports exports, Result[] results, org.apache.camel.Exchange exchange)
public String getSmooksConfig()
public void setSmooksConfig(String smooksConfig)
public SmooksProcessor addVisitor(Visitor visitor, String targetSelector)
visitor
- The visitor implementation.targetSelector
- The message fragment target selector.public SmooksProcessor addVisitor(VisitorAppender appender)
this
Smooks instance via a
VisitorAppender
.appender
- The visitor appender.public void setReportPath(String reportPath)
public void start() throws Exception
start
in interface org.apache.camel.Service
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.Service
Exception
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
Copyright © 2020. All rights reserved.