接口 HeaderMapper<T>

  • 类型参数:
    T - type of the instance to and from which headers will be mapped
    所有已知子接口:
    JmsHeaderMapper
    所有已知实现类:
    AbstractHeaderMapper, SimpleJmsHeaderMapper

    public interface HeaderMapper<T>
    Generic strategy interface for mapping MessageHeaders to and from other types of objects. This would typically be used by adapters where the "other type" has a concept of headers or properties (HTTP, JMS, AMQP, etc).
    从以下版本开始:
    4.1
    作者:
    Mark Fisher
    • 方法详细资料

      • fromHeaders

        void fromHeaders​(MessageHeaders headers,
                         T target)
        Map from the given MessageHeaders to the specified target message.
        参数:
        headers - the abstracted MessageHeaders
        target - the native target message