public class JsonInboundMessageMapper extends AbstractJsonInboundMessageMapper<JsonInboundMessageMapper.JsonMessageParser<?>>
InboundMessageMapper
implementation that maps incoming JSON messages
to a Message
with the specified payload type.Modifier and Type | Class and Description |
---|---|
static interface |
JsonInboundMessageMapper.JsonMessageParser<P> |
DEFAULT_HEADER_TYPES, headerTypes, mapToPayload, MESSAGE_FORMAT_ERROR, payloadType
Constructor and Description |
---|
JsonInboundMessageMapper(Class<?> payloadType,
JsonInboundMessageMapper.JsonMessageParser<?> messageParser) |
JsonInboundMessageMapper(Type payloadType,
JsonInboundMessageMapper.JsonMessageParser<?> messageParser) |
Modifier and Type | Method and Description |
---|---|
Map<String,Class<?>> |
getHeaderTypes() |
Type |
getPayloadType() |
boolean |
isMapToPayload() |
protected Map<String,Object> |
readHeaders(JsonInboundMessageMapper.JsonMessageParser<?> parser,
String jsonMessage) |
protected Object |
readPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser,
String jsonMessage) |
Message<?> |
toMessage(String jsonMessage) |
setHeaderTypes, setMapToPayload
public JsonInboundMessageMapper(Class<?> payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser)
public JsonInboundMessageMapper(Type payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser)
public boolean isMapToPayload()
public Type getPayloadType()
protected Map<String,Object> readHeaders(JsonInboundMessageMapper.JsonMessageParser<?> parser, String jsonMessage) throws Exception
readHeaders
in class AbstractJsonInboundMessageMapper<JsonInboundMessageMapper.JsonMessageParser<?>>
Exception
protected Object readPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser, String jsonMessage) throws Exception
readPayload
in class AbstractJsonInboundMessageMapper<JsonInboundMessageMapper.JsonMessageParser<?>>
Exception