Top Description Fields Constructors Methods
org.springframework.jms.support

public Class JmsMessageHeaderAccessor

extends NativeMessageHeaderAccessor
Class Inheritance
Imports
java.util.List, .Map, jakarta.jms.Destination, org.springframework.lang.Nullable, org.springframework.messaging.Message, org.springframework.messaging.support.NativeMessageHeaderAccessor

A org.springframework.messaging.support.MessageHeaderAccessor implementation giving access to JMS-specific headers.
Author
Stephane Nicoll
Since
4.1

Field Summary

Inherited from org.springframework.messaging.support.NativeMessageHeaderAccessor:
NATIVE_HEADERS

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public String
public Integer
public Destination
public Long
getExpiration()

Return the message expiration.

public String
getMessageId()

Return the message id.

public Integer
getPriority()

Return the priority.

public Boolean
getRedelivered()

Return the redelivered flag.

public Destination
getReplyTo()

Return the reply to.

public Long
public String
getType()

Return the type.

public static JmsMessageHeaderAccessor
wrap(Message<?> message)

Create a JmsMessageHeaderAccessor from the headers of an existing message.

Inherited from org.springframework.messaging.support.NativeMessageHeaderAccessor:
addNativeHeaderaddNativeHeaderscontainsNativeHeadercopyHeaderscopyHeadersIfAbsentgetFirstNativeHeadergetFirstNativeHeadergetNativeHeadergetNativeHeadersremoveNativeHeadersetImmutablesetNativeHeadersetNativeHeaderValuestoNativeHeaderMap

Constructor Detail

JmsMessageHeaderAccessorback to summary
protected JmsMessageHeaderAccessor(Map<String, List<String>> nativeHeaders)
JmsMessageHeaderAccessorback to summary
protected JmsMessageHeaderAccessor(Message<?> message)

Method Detail

getCorrelationIdback to summary
public String getCorrelationId()

Return the correlationId.

Annotations
@Nullable
See Also
JmsHeaders#CORRELATION_ID
getDeliveryModeback to summary
public Integer getDeliveryMode()

Return the delivery mode.

Annotations
@Nullable
See Also
JmsHeaders#DELIVERY_MODE
getDestinationback to summary
public Destination getDestination()

Return the destination.

Annotations
@Nullable
See Also
JmsHeaders#DESTINATION
getExpirationback to summary
public Long getExpiration()

Return the message expiration.

Annotations
@Nullable
See Also
JmsHeaders#EXPIRATION
getMessageIdback to summary
public String getMessageId()

Return the message id.

Annotations
@Nullable
See Also
JmsHeaders#MESSAGE_ID
getPriorityback to summary
public Integer getPriority()

Return the priority.

Annotations
@Nullable
See Also
JmsHeaders#PRIORITY
getRedeliveredback to summary
public Boolean getRedelivered()

Return the redelivered flag.

Annotations
@Nullable
See Also
JmsHeaders#REDELIVERED
getReplyToback to summary
public Destination getReplyTo()

Return the reply to.

Annotations
@Nullable
See Also
JmsHeaders#REPLY_TO
getTimestampback to summary
public Long getTimestamp()

Overrides org.springframework.messaging.support.MessageHeaderAccessor.getTimestamp.

Return the timestamp.

Annotations
@Override
@Nullable
See Also
JmsHeaders#TIMESTAMP
getTypeback to summary
public String getType()

Return the type.

Annotations
@Nullable
See Also
JmsHeaders#TYPE
wrapback to summary
public static JmsMessageHeaderAccessor wrap(Message<?> message)

Create a JmsMessageHeaderAccessor from the headers of an existing message.