org.mule.routing
Class CorrelationPropertiesExtractor

java.lang.Object
  extended byorg.mule.util.properties.MessagePropertyExtractor
      extended byorg.mule.routing.CorrelationPropertiesExtractor
All Implemented Interfaces:
PropertyExtractor

public class CorrelationPropertiesExtractor
extends MessagePropertyExtractor

CorrelationPropertiesExtractor 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)


Constructor Summary
CorrelationPropertiesExtractor()
           
 
Method Summary
 String getCorrelationId(UMOMessage message)
           
 String getMessageId(UMOMessage message)
           
 Object getProperty(String name, Object message)
          Extracts a single property from the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationPropertiesExtractor

public CorrelationPropertiesExtractor()
Method Detail

getProperty

public final Object getProperty(String name,
                                Object message)
Description copied from interface: PropertyExtractor
Extracts a single property from the message

Specified by:
getProperty in interface PropertyExtractor
Overrides:
getProperty in class MessagePropertyExtractor

getMessageId

public String getMessageId(UMOMessage message)

getCorrelationId

public String getCorrelationId(UMOMessage message)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.