Package org.apache.camel.support.builder
Class BinaryPredicateSupport
java.lang.Object
org.apache.camel.support.builder.BinaryPredicateSupport
- All Implemented Interfaces:
org.apache.camel.BinaryPredicate,org.apache.camel.Predicate
public abstract class BinaryPredicateSupport
extends Object
implements org.apache.camel.BinaryPredicate
A useful base class for
Predicate implementations-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBinaryPredicateSupport(org.apache.camel.Expression left, org.apache.camel.Expression right) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ExpressiongetLeft()protected abstract Stringorg.apache.camel.ExpressiongetRight()voidinit(org.apache.camel.CamelContext context) booleanmatches(org.apache.camel.Exchange exchange) protected abstract booleanmatchesReturningFailureMessage(org.apache.camel.Exchange exchange) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Predicate
initPredicate
-
Constructor Details
-
BinaryPredicateSupport
protected BinaryPredicateSupport(org.apache.camel.Expression left, org.apache.camel.Expression right)
-
-
Method Details
-
init
public void init(org.apache.camel.CamelContext context) - Specified by:
initin interfaceorg.apache.camel.Predicate
-
toString
-
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matchesin interfaceorg.apache.camel.Predicate
-
matchesReturningFailureMessage
- Specified by:
matchesReturningFailureMessagein interfaceorg.apache.camel.BinaryPredicate
-
matches
-
getOperationText
-
getLeft
public org.apache.camel.Expression getLeft()- Specified by:
getLeftin interfaceorg.apache.camel.BinaryPredicate
-
getRight
public org.apache.camel.Expression getRight()- Specified by:
getRightin interfaceorg.apache.camel.BinaryPredicate
-
getOperator
- Specified by:
getOperatorin interfaceorg.apache.camel.BinaryPredicate
-