Class AbstractJsonInboundMessageMapper<P>

java.lang.Object
org.springframework.integration.support.json.AbstractJsonInboundMessageMapper<P>
All Implemented Interfaces:
InboundMessageMapper<java.lang.String>
Direct Known Subclasses:
JsonInboundMessageMapper

public abstract class AbstractJsonInboundMessageMapper<P>
extends java.lang.Object
implements InboundMessageMapper<java.lang.String>
Abstract InboundMessageMapper implementation that maps incoming JSON messages to a Message with the specified payload type.
Since:
3.0
See Also:
JsonInboundMessageMapper
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static java.util.Map<java.lang.String,​java.lang.Class<?>> DEFAULT_HEADER_TYPES  
    protected java.util.Map<java.lang.String,​java.lang.Class<?>> headerTypes  
    protected static java.lang.String MESSAGE_FORMAT_ERROR  
    protected java.lang.reflect.Type payloadType  
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractJsonInboundMessageMapper​(java.lang.reflect.Type payloadType)  
  • Method Summary

    Modifier and Type Method Description
    boolean isMapToPayload()  
    protected abstract java.util.Map<java.lang.String,​java.lang.Object> readHeaders​(P parser, java.lang.String jsonMessage)  
    protected abstract java.lang.Object readPayload​(P parser, java.lang.String jsonMessage)  
    void setHeaderTypes​(java.util.Map<java.lang.String,​java.lang.Class<?>> headerTypes)  
    void setMapToPayload​(boolean mapToPayload)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.integration.mapping.InboundMessageMapper

    toMessage, toMessage
  • Field Details

  • Constructor Details

  • Method Details

    • setHeaderTypes

      public void setHeaderTypes​(java.util.Map<java.lang.String,​java.lang.Class<?>> headerTypes)
    • setMapToPayload

      public void setMapToPayload​(boolean mapToPayload)
    • isMapToPayload

      public boolean isMapToPayload()
    • readPayload

      protected abstract java.lang.Object readPayload​(P parser, java.lang.String jsonMessage)
    • readHeaders

      protected abstract java.util.Map<java.lang.String,​java.lang.Object> readHeaders​(P parser, java.lang.String jsonMessage)