org.springframework.integration.json
Class JsonInboundMessageMapper
java.lang.Object
org.springframework.integration.json.JsonInboundMessageMapper
- All Implemented Interfaces:
- InboundMessageMapper<java.lang.String>
public class JsonInboundMessageMapper
- extends java.lang.Object
- implements InboundMessageMapper<java.lang.String>
InboundMessageMapper
implementation that maps incoming JSON messages to a Message
with the specified payload type.
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonInboundMessageMapper
public JsonInboundMessageMapper(java.lang.Class<?> payloadType)
JsonInboundMessageMapper
public JsonInboundMessageMapper(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