GigaSpaces XAP 7.0 API

org.openspaces.esb.mule.message
Class AbstractMessageHeader

java.lang.Object
  extended by org.openspaces.esb.mule.message.AbstractMessageHeader
All Implemented Interfaces:
CorrelationMessageHeader, MessageHeader, ReplyToMessageHeader, UniqueIdMessageHeader

public abstract class AbstractMessageHeader
extends Object
implements CorrelationMessageHeader, ReplyToMessageHeader, UniqueIdMessageHeader

implemention of all Mule metadata interfaces. This class should be extended by any Class that wish to hold Mule metadata attributes.

Author:
yitzhaki

Field Summary
 
Fields inherited from interface org.openspaces.esb.mule.message.CorrelationMessageHeader
CORRELATION_GROUP_SIZE, CORRELATION_ID, CORRELATION_SEQUENCE
 
Fields inherited from interface org.openspaces.esb.mule.message.ReplyToMessageHeader
REPLY_TO
 
Fields inherited from interface org.openspaces.esb.mule.message.UniqueIdMessageHeader
UNIQUE_ID
 
Constructor Summary
AbstractMessageHeader()
           
 
Method Summary
 boolean equals(Object o)
           
 Integer getCorrelationGroupSize()
           
 String getCorrelationId()
           
 Integer getCorrelationSequence()
           
 MatchingMap<String,Object> getProperties()
           
 Object getProperty(String key)
           
 Object getReplyTo()
           
 String getUniqueId()
           
 int hashCode()
           
 Iterator<String> propertyNames()
           
 void setCorrelationGroupSize(Integer correlationGroupSize)
           
 void setCorrelationId(String correlationId)
           
 void setCorrelationSequence(Integer correlationSequence)
           
 void setProperties(MatchingMap<String,Object> properties)
          Sets all the properties from the properties param.
 void setProperty(String key, Object value)
           
 void setReplyTo(Object replyTo)
           
 void setUniqueId(String id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMessageHeader

public AbstractMessageHeader()
Method Detail

propertyNames

public Iterator<String> propertyNames()

getProperties

public MatchingMap<String,Object> getProperties()
Specified by:
getProperties in interface MessageHeader
Returns:
Map that contains all the properties.

setProperties

public void setProperties(MatchingMap<String,Object> properties)
Description copied from interface: MessageHeader
Sets all the properties from the properties param.

Specified by:
setProperties in interface MessageHeader
Parameters:
properties - - properties to set.

setProperty

public void setProperty(String key,
                        Object value)
Specified by:
setProperty in interface MessageHeader
Parameters:
key - the key to be placed into this property list.
value - the value corresponding to key.
See Also:
MessageHeader.getProperty(java.lang.String)

getProperty

public Object getProperty(String key)
Specified by:
getProperty in interface MessageHeader
Parameters:
key - the property key.
Returns:
the value in this property list with the specified key value.
See Also:
MessageHeader.setProperty(java.lang.String, java.lang.Object)

getReplyTo

public Object getReplyTo()
Specified by:
getReplyTo in interface ReplyToMessageHeader

setReplyTo

public void setReplyTo(Object replyTo)
Specified by:
setReplyTo in interface ReplyToMessageHeader

setUniqueId

public void setUniqueId(String id)
Specified by:
setUniqueId in interface UniqueIdMessageHeader

getUniqueId

public String getUniqueId()
Specified by:
getUniqueId in interface UniqueIdMessageHeader

getCorrelationId

public String getCorrelationId()
Specified by:
getCorrelationId in interface CorrelationMessageHeader

setCorrelationId

public void setCorrelationId(String correlationId)
Specified by:
setCorrelationId in interface CorrelationMessageHeader

getCorrelationSequence

public Integer getCorrelationSequence()
Specified by:
getCorrelationSequence in interface CorrelationMessageHeader

setCorrelationSequence

public void setCorrelationSequence(Integer correlationSequence)
Specified by:
setCorrelationSequence in interface CorrelationMessageHeader

getCorrelationGroupSize

public Integer getCorrelationGroupSize()
Specified by:
getCorrelationGroupSize in interface CorrelationMessageHeader

setCorrelationGroupSize

public void setCorrelationGroupSize(Integer correlationGroupSize)
Specified by:
setCorrelationGroupSize in interface CorrelationMessageHeader

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.