public abstract class AbstractJsonInboundMessageMapper<P> extends Object implements InboundMessageMapper<String>
InboundMessageMapper
implementation that maps incoming JSON messages
to a Message
with the specified payload type.JsonInboundMessageMapper
Modifier and Type | Field and Description |
---|---|
protected static Map<String,Class<?>> |
DEFAULT_HEADER_TYPES |
protected Map<String,Class<?>> |
headerTypes |
protected static String |
MESSAGE_FORMAT_ERROR |
protected Type |
payloadType |
Constructor and Description |
---|
AbstractJsonInboundMessageMapper(Type payloadType) |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toMessage, toMessage
protected static final String MESSAGE_FORMAT_ERROR
protected final Type payloadType
public AbstractJsonInboundMessageMapper(Type payloadType)