public abstract class AdapterSupport extends Object implements Adapter
Constructor and Description |
---|
AdapterSupport()
Creates an adapter that by default takes input data from the body of the
in-message.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
adaptInput(org.apache.camel.Exchange exchange)
|
protected Object |
adaptParams(org.apache.camel.Exchange exchange)
Applies the
Expression set by params(Expression) (or
implicitly set by staticParams(Object...) ) to obtain input
params from the exchange . |
Adapter |
input(groovy.lang.Closure inputExpressionLogic)
Sets an expression
Closure for obtaining input data from an
Exchange . |
Adapter |
input(org.apache.camel.Expression inputExpression)
Sets an
Expression for obtaining input data from an
Exchange . |
Adapter |
params(groovy.lang.Closure paramsExpressionLogic)
Sets an expression
Closure for obtaining input params from an
Exchange . |
Adapter |
params(org.apache.camel.Expression paramsExpression)
Sets an
Expression for obtaining input params from an
Exchange . |
Adapter |
staticParams(Object... params)
Configures this adapter to use the given
params
independent of the Exchange to be processed. |
public AdapterSupport()
Exchange.getIn()
,
Message.getBody()
public Adapter input(org.apache.camel.Expression inputExpression)
Adapter
Expression
for obtaining input data from an
Exchange
. Input data are passed to adapted
modules API implementations.public Adapter input(groovy.lang.Closure inputExpressionLogic)
Adapter
Closure
for obtaining input data from an
Exchange
. Input data are passed to adapted
modules API implementations.public Adapter params(org.apache.camel.Expression paramsExpression)
Adapter
Expression
for obtaining input params from an
Exchange
. Input params are passed to adapted
modules API implementations.public Adapter params(groovy.lang.Closure paramsExpressionLogic)
Adapter
Closure
for obtaining input params from an
Exchange
. Input params are passed to adapted
modules API implementations.public Adapter staticParams(Object... params)
Adapter
params
independent of the Exchange
to be processed.staticParams
in interface Adapter
params
- expression for obtaining input params.protected Object adaptInput(org.apache.camel.Exchange exchange)
exchange
- message exchange.null
if the expression evaluates to
null
or the expression object is null
.protected Object adaptParams(org.apache.camel.Exchange exchange)
Expression
set by params(Expression)
(or
implicitly set by staticParams(Object...)
) to obtain input
params from the exchange
.exchange
- message exchange.null
if the expression evaluates to
null
or the expression object is null
.Copyright © 2018 Open eHealth Foundation. All rights reserved.