public class PredicateAdapter extends AdapterSupport implements org.apache.camel.Predicate
Predicate
.Constructor and Description |
---|
PredicateAdapter(Predicate predicate)
Creates a new
PredicateAdapter and sets the delegate
Predicate . |
Modifier and Type | Method and Description |
---|---|
void |
assertMatches(String text,
org.apache.camel.Exchange exchange) |
PredicateAdapter |
input(org.apache.camel.Expression inputExpression)
Sets an
Expression for obtaining input data from an
Exchange . |
boolean |
matches(org.apache.camel.Exchange exchange)
Delegates matching to the delegate
Predicate applying input- and
params Expression s. |
PredicateAdapter |
params(org.apache.camel.Expression paramsExpression)
Sets an
Expression for obtaining input params from an
Exchange . |
PredicateAdapter |
staticParams(Object... params)
Configures this adapter to use the given
params
independent of the Exchange to be processed. |
adaptInput, adaptParams, input, params
public PredicateAdapter(Predicate predicate)
PredicateAdapter
and sets the delegate
Predicate
.predicate
- a predicate.public PredicateAdapter 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 PredicateAdapter 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 PredicateAdapter 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 boolean matches(org.apache.camel.Exchange exchange)
Predicate
applying input- and
params Expression
s.matches
in interface org.apache.camel.Predicate
exchange
- message exchange.input(Expression)
,
params(Expression)
,
staticParams(Object...)
public void assertMatches(String text, org.apache.camel.Exchange exchange) throws AssertionError
AssertionError
Copyright © 2018 Open eHealth Foundation. All rights reserved.