org.springframework.integration
Class MessageHeaders
java.lang.Object
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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
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
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
MessageHeaders
public MessageHeaders(Map<String,Object> headers)
getId
public UUID getId()
getTimestamp
public Long getTimestamp()
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>
Copyright © 2010. All Rights Reserved.