org.springframework.integration.json
Class InboundJsonMessageMapper
java.lang.Object
org.springframework.integration.json.InboundJsonMessageMapper
- All Implemented Interfaces:
- InboundMessageMapper<java.lang.String>
public class InboundJsonMessageMapper
- extends java.lang.Object
- implements InboundMessageMapper<java.lang.String>
InboundMessageMapper
implementation that maps incoming JSON messages to a Message
with the specified payload type.
TODO - Need to figure out if we need to go as deep in mapping HeaderTypes...right now it wouldn't work if the header type was something like List
- cannot assume order as implemented; headers may not always precede the payload
- Since:
- 2.0
- Author:
- Jeremy Grelle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InboundJsonMessageMapper
public InboundJsonMessageMapper(java.lang.Class<?> payloadType)
InboundJsonMessageMapper
public InboundJsonMessageMapper(org.codehaus.jackson.type.TypeReference<?> typeReference)
setHeaderTypes
public void setHeaderTypes(java.util.Map<java.lang.String,java.lang.Class<?>> headerTypes)
setMapToPayload
public void setMapToPayload(boolean mapToPayload)
toMessage
public Message<?> toMessage(java.lang.String jsonMessage)
throws java.lang.Exception
- Specified by:
toMessage
in interface InboundMessageMapper<java.lang.String>
- Throws:
java.lang.Exception