T
- the type of the target object holding the headerspublic interface RequestReplyHeaderMapper<T>
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).Modifier and Type | Method and Description |
---|---|
void |
fromHeadersToReply(MessageHeaders headers,
T target)
Map from the given
MessageHeaders to the specified reply target. |
void |
fromHeadersToRequest(MessageHeaders headers,
T target)
Map from the given
MessageHeaders to the specified request target. |
Map<String,Object> |
toHeadersFromReply(T source)
Map from the given reply object to abstracted
MessageHeaders . |
Map<String,Object> |
toHeadersFromRequest(T source)
Map from the given request object to abstracted
MessageHeaders . |
void fromHeadersToRequest(MessageHeaders headers, T target)
MessageHeaders
to the specified request target.headers
- the abstracted MessageHeaderstarget
- the native target requestvoid fromHeadersToReply(MessageHeaders headers, T target)
MessageHeaders
to the specified reply target.headers
- the abstracted MessageHeaderstarget
- the native target replyMap<String,Object> toHeadersFromRequest(T source)
MessageHeaders
.source
- the native target requestMap<String,Object> toHeadersFromReply(T source)
MessageHeaders
.source
- the native target reply