public interface Predicate
init(CamelContext) method which allows to prepare the
predicate such as wiring in resources, pre-parsing and what else.| Modifier and Type | Method and Description |
|---|---|
default void |
init(CamelContext context)
Initialize the predicate with the given camel context
|
default void |
initPredicate(CamelContext context)
Initialize as a predicate with the given camel context
|
boolean |
matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate
|
boolean matches(Exchange exchange)
exchange - the message exchangedefault void init(CamelContext context)
context - the camel contextdefault void initPredicate(CamelContext context)
context - the camel contextApache Camel