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 SummaryModifier and TypeMethodDescriptionvoidfromHeadersToReply(MessageHeaders headers, T target) Map from the givenMessageHeadersto the specified reply target.voidfromHeadersToRequest(MessageHeaders headers, T target) Map from the givenMessageHeadersto 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- 
fromHeadersToRequestMap from the givenMessageHeadersto the specified request target.- Parameters:
- headers- the abstracted MessageHeaders
- target- the native target request
 
- 
fromHeadersToReplyMap from the givenMessageHeadersto the specified reply target.- Parameters:
- headers- the abstracted MessageHeaders
- target- the native target reply
 
- 
toHeadersFromRequestMap from the given request object to abstractedMessageHeaders.- Parameters:
- source- the native target request
- Returns:
- the abstracted MessageHeaders
 
- 
toHeadersFromReplyMap from the given reply object to abstractedMessageHeaders.- Parameters:
- source- the native target reply
- Returns:
- the abstracted MessageHeaders
 
 
-