public class MockExpressionClauseSupport<T> extends Object
| Constructor and Description |
|---|
MockExpressionClauseSupport(T result) |
| Modifier and Type | Method and Description |
|---|---|
T |
attachments()
An expression of the inbound message attachments
|
T |
body()
An expression of an inbound message body
|
T |
body(Class<?> expectedType)
An expression of an inbound message body converted to the expected type
|
protected void |
configureExpression(org.apache.camel.CamelContext camelContext,
org.apache.camel.Expression expression) |
T |
constant(Object value)
Specify the constant expression value.
|
protected org.apache.camel.Expression |
createExpression(org.apache.camel.CamelContext camelContext) |
T |
exchange()
An expression of the exchange
|
T |
exchangePattern()
An expression of the exchange pattern
|
T |
exchangeProperties()
An expression of the exchange properties
|
T |
exchangeProperty(String name)
An expression of an exchange property of the given name
|
T |
expression(org.apache.camel.Expression expression)
Specify an
Expression instance |
org.apache.camel.ExpressionFactory |
getExpressionType() |
org.apache.camel.Expression |
getExpressionValue() |
T |
groovy(String text)
Evaluates a Groovy
expression
|
T |
header(String name)
An expression of an inbound message header of the given name
|
T |
headers()
An expression of the inbound headers
|
T |
hl7terser(String text)
Evaluates an HL7 Terser
expression
|
T |
inMessage()
An expression of an inbound message
|
T |
jsonpath(String text)
Evaluates a Json Path
expression
|
T |
language(org.apache.camel.ExpressionFactory expression)
Specify an
ExpressionFactory instance |
T |
language(String language,
String expression)
Evaluates a given language name with the expression text
|
T |
method(String bean)
|
T |
ognl(String text)
Evaluates an OGNL
expression
|
T |
outBody()
An expression of an outbound message body
|
T |
outBody(Class<?> expectedType)
An expression of an outbound message body converted to the expected type
|
T |
outHeader(String name)
An expression of an outbound message header of the given name
|
T |
outHeaders()
An expression of the outbound headers
|
T |
outMessage()
An expression of an inbound message
|
T |
ref(String ref)
Evaluates a
Expression by looking up existing Expression
from the Registry |
void |
setExpressionType(org.apache.camel.ExpressionFactory expressionType) |
void |
setExpressionValue(org.apache.camel.Expression expressionValue) |
T |
simple(String text)
Evaluates a Simple
expression
|
T |
spel(String text)
Evaluates an SpEL
expression
|
T |
xpath(String text)
Evaluates an XPath
expression
|
T |
xquery(String text)
Evaluates an XQuery expression
|
public MockExpressionClauseSupport(T result)
public T expression(org.apache.camel.Expression expression)
Expression instancepublic T language(org.apache.camel.ExpressionFactory expression)
ExpressionFactory instancepublic T constant(Object value)
public T exchange()
public T inMessage()
public T outMessage()
public T body()
public T body(Class<?> expectedType)
public T outBody()
public T outBody(Class<?> expectedType)
public T headers()
public T outHeader(String name)
public T outHeaders()
public T attachments()
public T exchangePattern()
public T exchangeProperty(String name)
public T exchangeProperties()
public T method(String bean)
bean - the name of the bean looked up the registrypublic T method(String bean, String method)
bean - the name of the bean looked up the registrymethod - the name of the method to invoke on the beanpublic T groovy(String text)
text - the expression to be evaluatedpublic T jsonpath(String text)
text - the expression to be evaluatedpublic T ognl(String text)
text - the expression to be evaluatedpublic T mvel(String text)
text - the expression to be evaluatedpublic T ref(String ref)
Expression by looking up existing Expression
from the Registryref - refers to the expression to be evaluatedpublic T spel(String text)
text - the expression to be evaluatedpublic T simple(String text)
text - the expression to be evaluatedpublic T hl7terser(String text)
text - the expression to be evaluatedpublic T xpath(String text)
text - the expression to be evaluatedpublic T xquery(String text)
text - the expression to be evaluatedpublic T language(String language, String expression)
language - the name of the languageexpression - the expression in the given languagepublic org.apache.camel.Expression getExpressionValue()
public void setExpressionValue(org.apache.camel.Expression expressionValue)
public org.apache.camel.ExpressionFactory getExpressionType()
public void setExpressionType(org.apache.camel.ExpressionFactory expressionType)
protected org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext)
protected void configureExpression(org.apache.camel.CamelContext camelContext,
org.apache.camel.Expression expression)
Apache Camel