org.apache.camel
Interface Predicate

All Known Subinterfaces:
BinaryPredicate
All Known Implementing Classes:
BeanExpression, BinaryPredicateSupport, ConstantExpression, ELExpression, ExpressionAdapter, ExpressionClause, ExpressionDefinition, ExpressionSupport, GroovyExpression, GroovyExpression, HeaderExpression, JavaScriptExpression, JuelExpression, JXPathExpression, JXPathExpression, LanguageExpression, MethodCallExpression, MvelExpression, MvelExpression, NamespaceAwareExpression, OgnlExpression, OgnlExpression, PhpExpression, PropertyExpression, PythonExpression, RefExpression, RubyExpression, ScriptBuilder, SimpleBuilder, SimpleExpression, SpelExpression, SpELExpression, SqlBuilder, SqlExpression, TimeClause, TokenizerExpression, XPathBuilder, XPathExpression, XQueryBuilder, XQueryExpression

public interface Predicate

Evaluates a binary predicate on the message exchange to support things like scripting languages, XQuery or SQL as well as any arbitrary Java expression.

Version:

Method Summary
 boolean matches(Exchange exchange)
          Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate
 

Method Detail

matches

boolean matches(Exchange exchange)
Evaluates the predicate on the message exchange and returns true if this exchange matches the predicate

Parameters:
exchange - the message exchange
Returns:
true if the predicate matches


Apache CAMEL