Package org.springframework.integration
Class StaticMessageHeaderAccessor
java.lang.Object
org.springframework.integration.StaticMessageHeaderAccessor
Lightweight type-safe header accessor avoiding object
creation just to access a header.
- Since:
- 5.0.1
- Author:
- Gary Russell, Artem Bilan
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleAcknowledgment
getAcknowledgment
(Message<?> message) static AcknowledgmentCallback
getAcknowledgmentCallback
(Message<?> message) static Closeable
getCloseableResource
(Message<?> message) static MimeType
getContentType
(Message<?> message) static AtomicInteger
getDeliveryAttempt
(Message<?> message) static Long
getExpirationDate
(Message<?> message) static UUID
static Integer
getPriority
(Message<?> message) static reactor.util.context.ContextView
getReactorContext
(Message<?> message) Get aContextView
header if present.static int
getSequenceNumber
(Message<?> message) static int
getSequenceSize
(Message<?> message) static <T> T
getSourceData
(Message<?> message) static Long
getTimestamp
(Message<?> message)
-
Method Details
-
getId
-
getTimestamp
-
getContentType
-
getExpirationDate
-
getSequenceNumber
-
getSequenceSize
-
getPriority
-
getCloseableResource
-
getDeliveryAttempt
-
getAcknowledgmentCallback
-
getAcknowledgment
-
getSourceData
-
getReactorContext
Get aContextView
header if present.- Parameters:
message
- the message to get a header from.- Returns:
- the
ContextView
header if present. - Since:
- 6.0.5
-