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(org.springframework.messaging.MessageHeaders headers,
T target)
Map from the given
MessageHeaders to the specified reply target. |
void |
fromHeadersToRequest(org.springframework.messaging.MessageHeaders headers,
T target)
Map from the given
MessageHeaders to the specified request target. |
java.util.Map<java.lang.String,java.lang.Object> |
toHeadersFromReply(T source)
Map from the given reply object to abstracted
MessageHeaders. |
java.util.Map<java.lang.String,java.lang.Object> |
toHeadersFromRequest(T source)
Map from the given request object to abstracted
MessageHeaders. |
void fromHeadersToRequest(org.springframework.messaging.MessageHeaders headers,
T target)
MessageHeaders to the specified request target.headers - the abstracted MessageHeaderstarget - the native target requestvoid fromHeadersToReply(org.springframework.messaging.MessageHeaders headers,
T target)
MessageHeaders to the specified reply target.headers - the abstracted MessageHeaderstarget - the native target replyjava.util.Map<java.lang.String,java.lang.Object> toHeadersFromRequest(T source)
MessageHeaders.source - the native target requestjava.util.Map<java.lang.String,java.lang.Object> toHeadersFromReply(T source)
MessageHeaders.source - the native target reply