Spring Integration

org.springframework.integration
Class MessageHeaders

java.lang.Object
  extended by org.springframework.integration.MessageHeaders
All Implemented Interfaces:
Serializable, Map<String,Object>

public final class MessageHeaders
extends Object
implements Map<String,Object>, Serializable

The headers for a Message.

Author:
Arjen Poutsma, Mark Fisher
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static String CORRELATION_ID
           
static String ERROR_CHANNEL
           
static String EXPIRATION_DATE
           
static String HISTORY
           
static String ID
          The key for the Message ID.
static String PREFIX
           
static String PRIORITY
           
static String REPLY_CHANNEL
           
static String SEQUENCE_NUMBER
           
static String SEQUENCE_SIZE
           
static String TIMESTAMP
           
 
Constructor Summary
MessageHeaders(Map<String,Object> headers)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean equals(Object obj)
           
 Object get(Object key)
           
<T> T
get(Object key, Class<T> type)
           
 Object getCorrelationId()
           
 Object getErrorChannel()
           
 Long getExpirationDate()
           
 MessageHistory getHistory()
           
 UUID getId()
           
 Integer getPriority()
           
 Object getReplyChannel()
           
 Integer getSequenceNumber()
           
 Integer getSequenceSize()
           
 Long getTimestamp()
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map<? extends String,? extends Object> t)
           
 Object remove(Object key)
           
 int size()
           
 String toString()
           
 Collection<Object> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

public static final String PREFIX
See Also:
Constant Field Values

ID

public static final String ID
The key for the Message ID. This is an automatically generated UUID and should never be explicitly set in the header map except in the case of Message deserialization where the serialized Message's generated UUID is being restored.

See Also:
Constant Field Values

TIMESTAMP

public static final String TIMESTAMP
See Also:
Constant Field Values

CORRELATION_ID

public static final String CORRELATION_ID
See Also:
Constant Field Values

REPLY_CHANNEL

public static final String REPLY_CHANNEL
See Also:
Constant Field Values

ERROR_CHANNEL

public static final String ERROR_CHANNEL
See Also:
Constant Field Values

HISTORY

public static final String HISTORY
See Also:
Constant Field Values

EXPIRATION_DATE

public static final String EXPIRATION_DATE
See Also:
Constant Field Values

PRIORITY

public static final String PRIORITY
See Also:
Constant Field Values

SEQUENCE_NUMBER

public static final String SEQUENCE_NUMBER
See Also:
Constant Field Values

SEQUENCE_SIZE

public static final String SEQUENCE_SIZE
See Also:
Constant Field Values
Constructor Detail

MessageHeaders

public MessageHeaders(Map<String,Object> headers)
Method Detail

getId

public UUID getId()

getTimestamp

public Long getTimestamp()

getHistory

public MessageHistory getHistory()

getExpirationDate

public Long getExpirationDate()

getCorrelationId

public Object getCorrelationId()

getReplyChannel

public Object getReplyChannel()

getErrorChannel

public Object getErrorChannel()

getSequenceNumber

public Integer getSequenceNumber()

getSequenceSize

public Integer getSequenceSize()

getPriority

public Integer getPriority()

get

public <T> T get(Object key,
                 Class<T> type)

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<String,Object>
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

size

public int size()
Specified by:
size in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>

putAll

public void putAll(Map<? extends String,? extends Object> t)
Specified by:
putAll in interface Map<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

Spring Integration

Copyright © 2010. All Rights Reserved.