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 SummaryModifier and TypeMethodDescriptionstatic SimpleAcknowledgmentgetAcknowledgment(Message<?> message) static AcknowledgmentCallbackgetAcknowledgmentCallback(Message<?> message) static CloseablegetCloseableResource(Message<?> message) static MimeTypegetContentType(Message<?> message) static AtomicIntegergetDeliveryAttempt(Message<?> message) static LonggetExpirationDate(Message<?> message) static UUIDstatic IntegergetPriority(Message<?> message) static reactor.util.context.ContextViewgetReactorContext(Message<?> message) Get aContextViewheader if present.static intgetSequenceNumber(Message<?> message) static intgetSequenceSize(Message<?> message) static <T> TgetSourceData(Message<?> message) static LonggetTimestamp(Message<?> message) 
- 
Method Details- 
getId
- 
getTimestamp
- 
getContentType
- 
getExpirationDate
- 
getSequenceNumber
- 
getSequenceSize
- 
getPriority
- 
getCloseableResource
- 
getDeliveryAttempt
- 
getAcknowledgmentCallback
- 
getAcknowledgment
- 
getSourceData
- 
getReactorContextGet aContextViewheader if present.- Parameters:
- message- the message to get a header from.
- Returns:
- the ContextViewheader if present.
- Since:
- 6.0.5
 
 
-