Interface RequestReplyHeaderMapper<T>

Type Parameters:
T - the type of the target object holding the headers
All Known Subinterfaces:
AmqpHeaderMapper, SoapHeaderMapper, XmppHeaderMapper
All Known Implementing Classes:
AbstractHeaderMapper, DefaultAmqpHeaderMapper, DefaultSoapHeaderMapper, DefaultXmppHeaderMapper

public interface RequestReplyHeaderMapper<T>
Request/Reply 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).
Since:
2.1
Author:
Oleg Zhurakousky, Stephane Nicoll
  • Method Details

    • fromHeadersToRequest

      void fromHeadersToRequest(MessageHeaders headers, T target)
      Map from the given MessageHeaders to the specified request target.
      Parameters:
      headers - the abstracted MessageHeaders
      target - the native target request
    • fromHeadersToReply

      void fromHeadersToReply(MessageHeaders headers, T target)
      Map from the given MessageHeaders to the specified reply target.
      Parameters:
      headers - the abstracted MessageHeaders
      target - the native target reply
    • toHeadersFromRequest

      Map<String,Object> toHeadersFromRequest(T source)
      Map from the given request object to abstracted MessageHeaders.
      Parameters:
      source - the native target request
      Returns:
      the abstracted MessageHeaders
    • toHeadersFromReply

      Map<String,Object> toHeadersFromReply(T source)
      Map from the given reply object to abstracted MessageHeaders.
      Parameters:
      source - the native target reply
      Returns:
      the abstracted MessageHeaders