Package org.apache.camel.component.mock
Class MockExpressionClauseSupport<T>
java.lang.Object
org.apache.camel.component.mock.MockExpressionClauseSupport<T>
- Direct Known Subclasses:
AssertionClause
A support class for building expression clauses.
This implementation is a derived copy of the org.apache.camel.builder.ExpressionClauseSupport 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 typeprotected void
configureExpression
(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression) Specify the constant expression value.protected org.apache.camel.Expression
createExpression
(org.apache.camel.CamelContext camelContext) exchange()
An expression of the exchangeAn expression of the exchange patternAn 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 headersEvaluates an HL7 Terser expressionAn expression of an inbound messageEvaluates a Json Path expressionEvaluates a given language name with the expression textlanguage
(org.apache.camel.ExpressionFactory expression) Specify anExpressionFactory
instanceEvaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates a MVEL expressionEvaluates an OGNL expressionEvaluates aExpression
by looking up existingExpression
from theRegistry
void
setExpressionType
(org.apache.camel.ExpressionFactory expressionType) void
setExpressionValue
(org.apache.camel.Expression expressionValue) Evaluates a Simple expressionEvaluates an SpEL expressionEvaluates an XPath expressionEvaluates an XQuery expression
-
Constructor Details
-
MockExpressionClauseSupport
-
-
Method Details
-
expression
Specify anExpression
instance -
language
Specify anExpressionFactory
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 -
inMessage
An expression of an inbound message -
body
An expression of an inbound message body -
body
An expression of an inbound message body converted to the expected type -
header
An expression of an inbound message header of the given name -
headers
An expression of the inbound headers -
exchangePattern
An expression of the exchange pattern -
exchangeProperty
An expression of an exchange property of the given name -
exchangeProperties
An expression of the exchange properties -
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>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 <a href="http://camel.apache.org/bean-language.html>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 aExpression
by looking up existingExpression
from theRegistry
- Parameters:
ref
- refers to the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
spel
Evaluates an 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
-
hl7terser
Evaluates an HL7 Terser 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() -
setExpressionValue
public void setExpressionValue(org.apache.camel.Expression expressionValue) -
getExpressionType
public org.apache.camel.ExpressionFactory getExpressionType() -
setExpressionType
public void setExpressionType(org.apache.camel.ExpressionFactory expressionType) -
createExpression
protected org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext) -
configureExpression
protected void configureExpression(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression)
-