org.springframework.integration.json
Class OutboundJsonMessageMapper
java.lang.Object
org.springframework.integration.json.OutboundJsonMessageMapper
- All Implemented Interfaces:
- OutboundMessageMapper<String>
public class OutboundJsonMessageMapper
- extends Object
- implements OutboundMessageMapper<String>
OutboundMessageMapper
implementation the converts a Message
to a JSON string representation.
TODO - We might need to add special handling for MessageHistory
- Author:
- Jeremy Grelle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutboundJsonMessageMapper
public OutboundJsonMessageMapper()
fromMessage
public String fromMessage(Message<?> message)
throws Exception
- Specified by:
fromMessage
in interface OutboundMessageMapper<String>
- Throws:
Exception
setShouldExtractPayload
public void setShouldExtractPayload(boolean shouldExtractPayload)
Copyright © 2010. All Rights Reserved.