## Uses of Class
org.springframework.messaging.support.MessageHeaderAccessor

- Packages that use MessageHeaderAccessor
  Package | Description
  --- | ---
  org.springframework.jms.support | This package provides generic JMS support classes, to be used by higher-level classes like JmsTemplate.
  org.springframework.messaging.simp | Generic support for Simple Messaging Protocols including protocols such as STOMP.
  org.springframework.messaging.simp.stomp | Generic support for 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 MessageHeaderAccessor in org.springframework.jms.support

    Subclasses of MessageHeaderAccessor in org.springframework.jms.support
    Modifier and Type | Class and Description
    --- | ---
    `class` | `JmsMessageHeaderAccessor` A `MessageHeaderAccessor` implementation giving access to JMS-specific headers.

  - ### Uses of MessageHeaderAccessor in org.springframework.messaging.simp

    Subclasses of MessageHeaderAccessor in org.springframework.messaging.simp
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SimpMessageHeaderAccessor` A base class for working with message headers in simple messaging protocols that support basic messaging patterns.

    Methods in org.springframework.messaging.simp that return MessageHeaderAccessor
    Modifier and Type | Method and Description
    --- | ---
    `protected MessageHeaderAccessor` | SimpMessageHeaderAccessor.`createAccessor(Message<?> message)`

  - ### Uses of MessageHeaderAccessor in org.springframework.messaging.simp.stomp

    Subclasses of MessageHeaderAccessor in org.springframework.messaging.simp.stomp
    Modifier and Type | Class and Description
    --- | ---
    `class` | `StompHeaderAccessor` A `MessageHeaderAccessor` to use when creating a `Message` from a decoded STOMP frame, or when encoding a `Message` to a STOMP frame.

    Methods in org.springframework.messaging.simp.stomp that return MessageHeaderAccessor
    Modifier and Type | Method and Description
    --- | ---
    `protected MessageHeaderAccessor` | StompHeaderAccessor.`createAccessor(Message<?> message)`

  - ### Uses of MessageHeaderAccessor in org.springframework.messaging.support

    Subclasses of MessageHeaderAccessor in org.springframework.messaging.support
    Modifier and Type | Class and Description
    --- | ---
    `class` | `NativeMessageHeaderAccessor` `MessageHeaderAccessor` subclass that supports storage and access of headers from an external source such as a message broker.

    Methods in org.springframework.messaging.support with type parameters of type MessageHeaderAccessor
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends MessageHeaderAccessor> T` | MessageHeaderAccessor.`getAccessor(Message<?> message, Class<T> requiredType)` Return the original `MessageHeaderAccessor` used to create the headers of the given `Message`, or `null` if that's not available or if its type does not match the required type.
    `static <T extends MessageHeaderAccessor> T` | MessageHeaderAccessor.`getAccessor(MessageHeaders messageHeaders, Class<T> requiredType)` A variation of `getAccessor(org.springframework.messaging.Message, Class)` with a `MessageHeaders` instance instead of a `Message`.

    Methods in org.springframework.messaging.support that return MessageHeaderAccessor
    Modifier and Type | Method and Description
    --- | ---
    `protected MessageHeaderAccessor` | MessageHeaderAccessor.`createAccessor(Message<?> message)` Build a 'nested' accessor for the given message.
    `static MessageHeaderAccessor` | MessageHeaderAccessor.`getAccessor(Message<?> message)` Return the original `MessageHeaderAccessor` used to create the headers of the given `Message`, or `null` if that's not available or if its type does not match the required type.
    `static MessageHeaderAccessor` | MessageHeaderAccessor.`getMutableAccessor(Message<?> message)` Return a mutable `MessageHeaderAccessor` for the given message attempting to match the type of accessor used to create the message headers, or otherwise wrapping the message with a `MessageHeaderAccessor` instance.

    Methods in org.springframework.messaging.support with parameters of type MessageHeaderAccessor
    Modifier and Type | Method and Description
    --- | ---
    `void` | MessageHeaderInitializer.`initHeaders(MessageHeaderAccessor headerAccessor)` Initialize the given `MessageHeaderAccessor`.
    `void` | IdTimestampMessageHeaderInitializer.`initHeaders(MessageHeaderAccessor headerAccessor)`
    `MessageBuilder<T>` | MessageBuilder.`setHeaders(MessageHeaderAccessor accessor)` Set the message headers to use by providing a `MessageHeaderAccessor`.