public class JsonInboundMessageMapper extends AbstractJsonInboundMessageMapper<JsonInboundMessageMapper.JsonMessageParser<?>>
Message にマップする InboundMessageMapper 実装。 代わりに EmbeddedJsonHeadersMessageMapper の使用を検討してください。
| 修飾子と型 | クラスと説明 |
|---|---|
static interface | JsonInboundMessageMapper.JsonMessageParser<P> |
DEFAULT_HEADER_TYPES, headerTypes, MESSAGE_FORMAT_ERROR, payloadType| コンストラクターと説明 |
|---|
JsonInboundMessageMapper(ClassSE<?> payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser) |
JsonInboundMessageMapper(TypeSE payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser) |
| 修飾子と型 | メソッドと説明 |
|---|---|
MapSE<StringSE, ClassSE<?>> | getHeaderTypes() |
TypeSE | getPayloadType() |
protected MapSE<StringSE, ObjectSE> | readHeaders(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) |
protected ObjectSE | readPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) |
Message<?> | toMessage(StringSE jsonMessage, MapSE<StringSE, ObjectSE> headers) 提供されたオブジェクトを Message に変換し、必要に応じて提供されたヘッダーを提供します。 |
isMapToPayload, setHeaderTypes, setMapToPayloadcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEtoMessagepublic JsonInboundMessageMapper(ClassSE<?> payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser)
public JsonInboundMessageMapper(TypeSE payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser)
public TypeSE getPayloadType()
public Message<?> toMessage(StringSE jsonMessage, @Nullable MapSE<StringSE,ObjectSE> headers)
InboundMessageMapperMessage に変換し、必要に応じて提供されたヘッダーを提供します。jsonMessage - メッセージペイロードまたはその他の変換ロジックのオブジェクト headers - メッセージを作成するための追加ヘッダー。null にすることができます protected MapSE<StringSE,ObjectSE> readHeaders(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage)
protected ObjectSE readPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage)