Interface RequestReplyHeaderMapper<T>
- Type Parameters:
T
- the type of the target object holding the headers
- All Known Implementing Classes:
AbstractHeaderMapper
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
-
Method Summary
Modifier and Type Method Description void
fromHeadersToReply(org.springframework.messaging.MessageHeaders headers, T target)
Map from the givenMessageHeaders
to the specified reply target.void
fromHeadersToRequest(org.springframework.messaging.MessageHeaders headers, T target)
Map from the givenMessageHeaders
to the specified request target.java.util.Map<java.lang.String,java.lang.Object>
toHeadersFromReply(T source)
Map from the given reply object to abstractedMessageHeaders
.java.util.Map<java.lang.String,java.lang.Object>
toHeadersFromRequest(T source)
Map from the given request object to abstractedMessageHeaders
.
-
Method Details
-
fromHeadersToRequest
Map from the givenMessageHeaders
to the specified request target.- Parameters:
headers
- the abstracted MessageHeaderstarget
- the native target request
-
fromHeadersToReply
Map from the givenMessageHeaders
to the specified reply target.- Parameters:
headers
- the abstracted MessageHeaderstarget
- the native target reply
-
toHeadersFromRequest
Map from the given request object to abstractedMessageHeaders
.- Parameters:
source
- the native target request- Returns:
- the abstracted MessageHeaders
-
toHeadersFromReply
Map from the given reply object to abstractedMessageHeaders
.- Parameters:
source
- the native target reply- Returns:
- the abstracted MessageHeaders
-