Class AbstractJsonInboundMessageMapper<P>
java.lang.Object
org.springframework.integration.support.json.AbstractJsonInboundMessageMapper<P>
- Type Parameters:
- P- the payload type.
- All Implemented Interfaces:
- InboundMessageMapper<String>
- Direct Known Subclasses:
- JsonInboundMessageMapper
public abstract class AbstractJsonInboundMessageMapper<P> extends Object implements InboundMessageMapper<String>
Abstract 
InboundMessageMapper implementation that maps incoming JSON messages
 to a Message with the specified payload type.- Since:
- 3.0
- Author:
- Artem Bilan, Gary Russell
- See Also:
- JsonInboundMessageMapper
- 
Field SummaryFields Modifier and Type Field Description protected static Map<String,Class<?>>DEFAULT_HEADER_TYPESprotected Map<String,Class<?>>headerTypesprotected static StringMESSAGE_FORMAT_ERRORprotected TypepayloadType
- 
Constructor SummaryConstructors Constructor Description AbstractJsonInboundMessageMapper(Type payloadType)
- 
Method SummaryModifier and Type Method Description booleanisMapToPayload()protected abstract Map<String,Object>readHeaders(P parser, String jsonMessage)protected abstract ObjectreadPayload(P parser, String jsonMessage)voidsetHeaderTypes(Map<String,Class<?>> headerTypes)voidsetMapToPayload(boolean mapToPayload)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.mapping.InboundMessageMappertoMessage, toMessage
- 
Field Details
- 
Constructor Details
- 
Method Details- 
setHeaderTypes
- 
setMapToPayloadpublic void setMapToPayload(boolean mapToPayload)
- 
isMapToPayloadpublic boolean isMapToPayload()
- 
readPayload
- 
readHeaders
 
-