|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.gateway.SimpleMessageMapper
public class SimpleMessageMapper
An implementation of the InboundMessageMapper and
OutboundMessageMapper strategy interfaces that maps directly to and
from the Message payload instance.
| Constructor Summary | |
|---|---|
SimpleMessageMapper()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
fromMessage(Message<?> message)
Returns the Message payload (or null if the Message is null). |
Message<?> |
toMessage(java.lang.Object object)
Returns a Message with the given object as its payload, unless the object is already a Message in which case it will be returned as-is. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleMessageMapper()
| Method Detail |
|---|
public java.lang.Object fromMessage(Message<?> message)
fromMessage in interface OutboundMessageMapper<java.lang.Object>public Message<?> toMessage(java.lang.Object object)
toMessage in interface InboundMessageMapper<java.lang.Object>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||