org.mule.routing.correlation
Class CorrelationPropertiesExpressionEvaluator
java.lang.Object
org.mule.expression.MessageHeaderExpressionEvaluator
org.mule.routing.correlation.CorrelationPropertiesExpressionEvaluator
- All Implemented Interfaces:
- ExpressionEvaluator, NamedObject
public class CorrelationPropertiesExpressionEvaluator
- extends MessageHeaderExpressionEvaluator
CorrelationPropertiesExpressionEvaluator
is a default implementation used for
getting the Correlation information from a message. This object is only used when
getting a specific property to be set on the message. When reading the property
the getProperty(...) or the direct property accessor will be used i.e.
message.getCorrelationId() or
message.getProperty(MuleProperties.MULE_CORRELATION_ID_PROPERTY)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CorrelationPropertiesExpressionEvaluator
public CorrelationPropertiesExpressionEvaluator()
evaluate
public final Object evaluate(String name,
MuleMessage message)
- Description copied from interface:
ExpressionEvaluator
- Extracts a single property from the message
- Specified by:
evaluate
in interface ExpressionEvaluator
- Overrides:
evaluate
in class MessageHeaderExpressionEvaluator
- Parameters:
name
- the property expression or expressionmessage
- the message to extract from
- Returns:
- the result of the extraction or null if the property was not found
getMessageId
public String getMessageId(MuleMessage message)
getCorrelationId
public String getCorrelationId(MuleMessage message)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.