## Uses of Class
org.springframework.messaging.MessageHeaders

Packages that use MessageHeaders
org.springframework.messaging: Support for working with messaging APIs and protocols.
org.springframework.messaging.converter: Provides support for message conversion.
org.springframework.messaging.simp.annotation.support: Support classes for handling messages from simple messaging protocols (like STOMP).
org.springframework.messaging.support: Provides implementations of `Message` along with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as various `MessageChannel` implementations and channel interceptor support.

### Uses of MessageHeaders in org.springframework.messaging

Methods in org.springframework.messaging that return MessageHeaders
`MessageHeaders` Message.`getHeaders()` Return message headers for the message (never `null` but may be empty).

### Uses of MessageHeaders in org.springframework.messaging.converter

Methods in org.springframework.messaging.converter with parameters of type MessageHeaders
`protected boolean` AbstractMessageConverter.`canConvertTo(Object payload, MessageHeaders headers)`
`protected boolean` MappingJackson2MessageConverter.`canConvertTo(Object payload, MessageHeaders headers)`
`protected boolean` MarshallingMessageConverter.`canConvertTo(Object payload, MessageHeaders headers)`
`protected boolean` ProtobufMessageConverter.`canConvertTo(Object payload, MessageHeaders headers)`
`protected Object` ByteArrayMessageConverter.`convertToInternal(Object payload, MessageHeaders headers, Object conversionHint)`
`protected Object` AbstractMessageConverter.`convertToInternal(Object payload, MessageHeaders headers, Object conversionHint)` Convert the payload object to serialized form.
`protected Object` MappingJackson2MessageConverter.`convertToInternal(Object payload, MessageHeaders headers, Object conversionHint)`
`protected Object` StringMessageConverter.`convertToInternal(Object payload, MessageHeaders headers, Object conversionHint)`
`protected Object` MarshallingMessageConverter.`convertToInternal(Object payload, MessageHeaders headers, Object conversionHint)`
`protected Object` ProtobufMessageConverter.`convertToInternal(Object payload, MessageHeaders headers, Object conversionHint)`
`protected org.springframework.util.MimeType` AbstractMessageConverter.`getMimeType(MessageHeaders headers)`
`org.springframework.util.MimeType` DefaultContentTypeResolver.`resolve(MessageHeaders headers)`
`org.springframework.util.MimeType` ContentTypeResolver.`resolve(MessageHeaders headers)` Determine the `MimeType` of a message from the given MessageHeaders.
`protected boolean` AbstractMessageConverter.`supportsMimeType(MessageHeaders headers)`
`Message<?>` SimpleMessageConverter.`toMessage(Object payload, MessageHeaders headers)`
`Message<?>` MessageConverter.`toMessage(Object payload, MessageHeaders headers)` Create a `Message` whose payload is the result of converting the given payload Object to serialized form.
`Message<?>` AbstractMessageConverter.`toMessage(Object payload, MessageHeaders headers)`
`Message<?>` CompositeMessageConverter.`toMessage(Object payload, MessageHeaders headers)`
`Message<?>` AbstractMessageConverter.`toMessage(Object payload, MessageHeaders headers, Object conversionHint)`
`Message<?>` SmartMessageConverter.`toMessage(Object payload, MessageHeaders headers, Object conversionHint)` A variant of `MessageConverter.toMessage(Object, MessageHeaders)` which takes an extra conversion context as an argument, allowing to take e.g.
`Message<?>` CompositeMessageConverter.`toMessage(Object payload, MessageHeaders headers, Object conversionHint)`

### Uses of MessageHeaders in org.springframework.messaging.simp.annotation.support

Methods in org.springframework.messaging.simp.annotation.support with parameters of type MessageHeaders
`protected String` SendToMethodReturnValueHandler.`getUserName(Message<?> message, MessageHeaders headers)`

### Uses of MessageHeaders in org.springframework.messaging.support

Methods in org.springframework.messaging.support that return MessageHeaders
`MessageHeaders` GenericMessage.`getHeaders()`
`MessageHeaders` MessageHeaderAccessor.`getMessageHeaders()` Return the underlying `MessageHeaders` instance.
`MessageHeaders` HeaderMapper.`toHeaders(T source)` Map from the given target message to abstracted `MessageHeaders`.
`MessageHeaders` MessageHeaderAccessor.`toMessageHeaders()` Return a copy of the underlying header values as a `MessageHeaders` object.

Methods in org.springframework.messaging.support with parameters of type MessageHeaders
`static <T> Message<T>` MessageBuilder.`createMessage(T payload, MessageHeaders messageHeaders)` A shortcut factory method for creating a message with the given payload and `MessageHeaders`.
`void` HeaderMapper.`fromHeaders(MessageHeaders headers, T target)` Map from the given `MessageHeaders` to the specified target message.
`static <T extends MessageHeaderAccessor> T` MessageHeaderAccessor.`getAccessor(MessageHeaders messageHeaders, Class<T> requiredType)` A variation of `MessageHeaderAccessor.getAccessor(org.springframework.messaging.Message, Class)` with a `MessageHeaders` instance instead of a `Message`.

Constructors in org.springframework.messaging.support with parameters of type MessageHeaders
Constructor and Description
`ErrorMessage(Throwable payload, MessageHeaders headers)` A constructor with the `MessageHeaders` instance to use.
`ErrorMessage(Throwable payload, MessageHeaders headers, Message<?> originalMessage)` Create a new message with the payload, `MessageHeaders` and original message.
`GenericMessage(T payload, MessageHeaders headers)` A constructor with the `MessageHeaders` instance to use.