public abstract class ProcessorAdapter extends AdapterSupport implements org.apache.camel.Processor
Processor
.Constructor and Description |
---|
ProcessorAdapter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doProcess(org.apache.camel.Exchange exchange,
Object inputData,
Object... inputParams)
Processes input data and populates the output exchange.
|
ProcessorAdapter |
input(org.apache.camel.Expression inputExpression)
Sets an
Expression for obtaining input data from an
Exchange . |
ProcessorAdapter |
params(org.apache.camel.Expression paramsExpression)
Sets an
Expression for obtaining input params from an
Exchange . |
void |
process(org.apache.camel.Exchange exchange)
Dispatches the
exchange to
doProcess(Exchange, Object, Object...) implementations. |
ProcessorAdapter |
staticParams(Object... params)
Configures this adapter to use the given
params
independent of the Exchange to be processed. |
adaptInput, adaptParams, input, params
public ProcessorAdapter input(org.apache.camel.Expression inputExpression)
Adapter
Expression
for obtaining input data from an
Exchange
. Input data are passed to adapted
modules API implementations.input
in interface Adapter
input
in class AdapterSupport
inputExpression
- expression for obtaining input data.public ProcessorAdapter params(org.apache.camel.Expression paramsExpression)
Adapter
Expression
for obtaining input params from an
Exchange
. Input params are passed to adapted
modules API implementations.params
in interface Adapter
params
in class AdapterSupport
paramsExpression
- expression for obtaining input params.public ProcessorAdapter staticParams(Object... params)
Adapter
params
independent of the Exchange
to be processed.staticParams
in interface Adapter
staticParams
in class AdapterSupport
params
- expression for obtaining input params.public void process(org.apache.camel.Exchange exchange) throws Exception
exchange
to
doProcess(Exchange, Object, Object...)
implementations.process
in interface org.apache.camel.Processor
Exception
input(Expression)
,
params(Expression)
,
staticParams(Object...)
protected abstract void doProcess(org.apache.camel.Exchange exchange, Object inputData, Object... inputParams) throws Exception
exchange
- message exchange where to write processing results.inputData
- input data.inputParams
- input parameters.Exception
- if a processing error occurs.Copyright © 2018 Open eHealth Foundation. All rights reserved.