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 Type Method Description voidfromHeadersToReply(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.Map<String,Object>toHeadersFromReply(T source)Map from the given reply object to abstractedMessageHeaders.Map<String,Object>toHeadersFromRequest(T source)Map from the given request object to abstractedMessageHeaders.
-
Method Details
-
fromHeadersToRequest
Map from the givenMessageHeadersto the specified request target.- Parameters:
headers- the abstracted MessageHeaderstarget- the native target request
-
fromHeadersToReply
Map from the givenMessageHeadersto 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
-