org.springframework.integration.core
Class MessageHeaders
java.lang.Object
org.springframework.integration.core.MessageHeaders
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map<java.lang.String,java.lang.Object>
public final class MessageHeaders
- extends java.lang.Object
- implements java.util.Map<java.lang.String,java.lang.Object>, java.io.Serializable
The headers for a Message
.
- Author:
- Arjen Poutsma, Mark Fisher
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
MessageHeaders(java.util.Map<java.lang.String,java.lang.Object> headers)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
TIMESTAMP
public static final java.lang.String TIMESTAMP
- See Also:
- Constant Field Values
CORRELATION_ID
public static final java.lang.String CORRELATION_ID
- See Also:
- Constant Field Values
REPLY_CHANNEL
public static final java.lang.String REPLY_CHANNEL
- See Also:
- Constant Field Values
ERROR_CHANNEL
public static final java.lang.String ERROR_CHANNEL
- See Also:
- Constant Field Values
EXPIRATION_DATE
public static final java.lang.String EXPIRATION_DATE
- See Also:
- Constant Field Values
PRIORITY
public static final java.lang.String PRIORITY
- See Also:
- Constant Field Values
SEQUENCE_NUMBER
public static final java.lang.String SEQUENCE_NUMBER
- See Also:
- Constant Field Values
SEQUENCE_SIZE
public static final java.lang.String SEQUENCE_SIZE
- See Also:
- Constant Field Values
MessageHeaders
public MessageHeaders(java.util.Map<java.lang.String,java.lang.Object> headers)
getId
public java.lang.Object getId()
getTimestamp
public java.lang.Long getTimestamp()
getExpirationDate
public java.lang.Long getExpirationDate()
getCorrelationId
public java.lang.Object getCorrelationId()
getReplyChannel
public java.lang.Object getReplyChannel()
getErrorChannel
public java.lang.Object getErrorChannel()
getSequenceNumber
public java.lang.Integer getSequenceNumber()
getSequenceSize
public java.lang.Integer getSequenceSize()
getPriority
public MessagePriority getPriority()
get
public <T> T get(java.lang.Object key,
java.lang.Class<T> type)
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.util.Map<java.lang.String,java.lang.Object>
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map<java.lang.String,java.lang.Object>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
size
public int size()
- Specified by:
size
in interface java.util.Map<java.lang.String,java.lang.Object>
values
public java.util.Collection<java.lang.Object> values()
- Specified by:
values
in interface java.util.Map<java.lang.String,java.lang.Object>
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
- Specified by:
put
in interface java.util.Map<java.lang.String,java.lang.Object>
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> t)
- Specified by:
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
clear
public void clear()
- Specified by:
clear
in interface java.util.Map<java.lang.String,java.lang.Object>