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 Summary
Modifier and TypeMethodDescriptionvoid
fromHeadersToReply
(MessageHeaders headers, T target) Map from the givenMessageHeaders
to the specified reply target.void
fromHeadersToRequest
(MessageHeaders headers, T target) Map from the givenMessageHeaders
to the specified request target.toHeadersFromReply
(T source) Map from the given reply object to abstractedMessageHeaders
.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
-