Package org.apache.camel.component.mock
Class MockExpressionClause<T>
java.lang.Object
org.apache.camel.component.mock.MockExpressionClause<T>
- All Implemented Interfaces:
org.apache.camel.Expression
,org.apache.camel.Predicate
public class MockExpressionClause<T>
extends Object
implements org.apache.camel.Expression, org.apache.camel.Predicate
Represents an expression clause within the DSL which when the expression is complete the clause continues to another
part of the DSL
This implementation is a derived copy of the org.apache.camel.builder.ExpressionClause from camel-core, that
are specialized for being used with the mock component and separated from camel-core.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbody()
An expression of an inbound message bodyAn expression of an inbound message body converted to the expected type<B> T
A functional expression of an inbound message body converted to the expected type and headers<B> T
A functional expression of an inbound message body converted to the expected typeA functional expression of an inbound message body and headersA functional expression of an inbound message bodyA functional expression of an inbound message bodySpecify the constant expression value.<T> T
exchange()
An expression of the exchangeA functional expression of the exchangeAn expression of the exchange propertiesexchangeProperty
(String name) An expression of an exchange property of the given nameexpression
(org.apache.camel.Expression expression) Specify anExpression
instanceorg.apache.camel.ExpressionFactory
org.apache.camel.Expression
Evaluates a Groovy expressionAn expression of an inbound message header of the given nameheaders()
An expression of the inbound headersvoid
init
(org.apache.camel.CamelContext context) An expression of an inbound messageA functional expression of an inbound messageEvaluates a Json Path expressionEvaluates a given language name with the expression textboolean
matches
(org.apache.camel.Exchange exchange) message()
An expression of an inbound messageA functional expression of an inbound messageEvaluates an expression using the bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the bean language which basically means the bean is invoked to determine the expression value.Evaluates a MVEL expressionEvaluates an OGNL expression<B> T
A functional expression of an outbound message body converted to the expected type and headers<B> T
A functional expression of an outbound message body converted to the expected typeA functional expression of an outbound message body and headersA functional expression of an outbound message bodyoutMessage
(Function<org.apache.camel.Message, Object> function) A functional expression of an outbound messageEvaluates a Ref expressionEvaluates a Simple expressionEvaluates a SpEL expressionEvaluates an XPath expressionEvaluates an XQuery expressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.Predicate
initPredicate
-
Constructor Details
-
MockExpressionClause
-
-
Method Details
-
expression
Specify anExpression
instance -
constant
Specify the constant expression value. Important: this is a fixed constant value that is only set once during starting up the route, do not use this if you want dynamic values during routing. -
exchange
An expression of the exchange -
exchange
A functional expression of the exchange -
message
An expression of an inbound message -
message
A functional expression of an inbound message -
inMessage
An expression of an inbound message -
inMessage
A functional expression of an inbound message -
outMessage
A functional expression of an outbound message -
body
An expression of an inbound message body -
body
A functional expression of an inbound message body -
body
A functional expression of an inbound message body -
body
A functional expression of an inbound message body and headers -
body
An expression of an inbound message body converted to the expected type -
body
A functional expression of an inbound message body converted to the expected type -
body
A functional expression of an inbound message body converted to the expected type and headers -
outBody
A functional expression of an outbound message body -
outBody
A functional expression of an outbound message body and headers -
outBody
A functional expression of an outbound message body converted to the expected type -
outBody
A functional expression of an outbound message body converted to the expected type and headers -
header
An expression of an inbound message header of the given name -
headers
An expression of the inbound headers -
exchangeProperty
An expression of an exchange property of the given name -
exchangeProperties
An expression of the exchange properties -
method
Evaluates an expression using the bean language which basically means the bean is invoked to determine the expression value.- Parameters:
bean
- the name of the bean looked up the registry- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the bean language which basically means the bean is invoked to determine the expression value.- Parameters:
bean
- the name of the bean looked up the registrymethod
- the name of the method to invoke on the bean- Returns:
- the builder to continue processing the DSL
-
groovy
Evaluates a Groovy expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
ognl
Evaluates an OGNL expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
mvel
Evaluates a MVEL expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
ref
Evaluates a Ref expression- Parameters:
ref
- refers to the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
spel
Evaluates a SpEL expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
simple
Evaluates a Simple expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
language
Evaluates a given language name with the expression text- Parameters:
language
- the name of the languageexpression
- the expression in the given language- Returns:
- the builder to continue processing the DSL
-
getExpressionValue
public org.apache.camel.Expression getExpressionValue() -
getExpressionType
public org.apache.camel.ExpressionFactory getExpressionType() -
init
public void init(org.apache.camel.CamelContext context) - Specified by:
init
in interfaceorg.apache.camel.Expression
- Specified by:
init
in interfaceorg.apache.camel.Predicate
-
evaluate
- Specified by:
evaluate
in interfaceorg.apache.camel.Expression
-
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matches
in interfaceorg.apache.camel.Predicate
-