Class AbstractJsonInboundMessageMapper<P>
java.lang.Object
org.springframework.integration.support.json.AbstractJsonInboundMessageMapper<P>
- 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 Summary
Fields Modifier and Type Field Description protected static Map<String,Class<?>>
DEFAULT_HEADER_TYPES
protected Map<String,Class<?>>
headerTypes
protected static String
MESSAGE_FORMAT_ERROR
protected Type
payloadType
-
Constructor Summary
Constructors Constructor Description AbstractJsonInboundMessageMapper(Type payloadType)
-
Method Summary
Modifier and Type Method Description boolean
isMapToPayload()
protected abstract Map<String,Object>
readHeaders(P parser, String jsonMessage)
protected abstract Object
readPayload(P parser, String jsonMessage)
void
setHeaderTypes(Map<String,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
-
setMapToPayload
public void setMapToPayload(boolean mapToPayload) -
isMapToPayload
public boolean isMapToPayload() -
readPayload
-
readHeaders
-