クラス JsonInboundMessageMapper
java.lang.ObjectSE
org.springframework.integration.support.json.AbstractJsonInboundMessageMapper<JsonInboundMessageMapper.JsonMessageParser<?>>
org.springframework.integration.support.json.JsonInboundMessageMapper
- 実装されたすべてのインターフェース:
InboundMessageMapper<StringSE>
public class JsonInboundMessageMapper
extends AbstractJsonInboundMessageMapper<JsonInboundMessageMapper.JsonMessageParser<?>>
受信 JSON メッセージを指定されたペイロード型の
Message
にマップする InboundMessageMapper
実装。 代わりに EmbeddedJsonHeadersMessageMapper
の使用を検討してください。
- 導入:
- 2.0
- 作成者:
- Jeremy Grelle, Oleg Zhurakousky, Mark Fisher, Artem Bilan, Gary Russell
ネストされたクラスのサマリー
ネストされたクラスフィールドのサマリー
クラス org.springframework.integration.support.json.AbstractJsonInboundMessageMapper から継承されたフィールド
DEFAULT_HEADER_TYPES, headerTypes, MESSAGE_FORMAT_ERROR, payloadType
コンストラクターの概要
コンストラクターコンストラクター説明JsonInboundMessageMapper
(ClassSE<?> payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser) JsonInboundMessageMapper
(TypeSE payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser) メソッドのサマリー
修飾子と型メソッド説明readHeaders
(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) protected ObjectSE
readPayload
(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) Message
<?> 提供されたオブジェクトをMessage
に変換し、必要に応じて提供されたヘッダーを提供します。クラス org.springframework.integration.support.json.AbstractJsonInboundMessageMapper から継承されたメソッド
isMapToPayload, setHeaderTypes, setMapToPayload
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.integration.mapping.InboundMessageMapper から継承されたメソッド
toMessage
コンストラクターの詳細
JsonInboundMessageMapper
public JsonInboundMessageMapper(ClassSE<?> payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser) JsonInboundMessageMapper
public JsonInboundMessageMapper(TypeSE payloadType, JsonInboundMessageMapper.JsonMessageParser<?> messageParser)
メソッドの詳細
getPayloadType
getHeaderTypes
toMessage
インターフェースからコピーされた説明:InboundMessageMapper
提供されたオブジェクトをMessage
に変換し、必要に応じて提供されたヘッダーを提供します。- パラメーター:
jsonMessage
- メッセージペイロードまたはその他の変換ロジックのオブジェクトheaders
- メッセージを作成するための追加ヘッダー。null にすることができます- 戻り値:
- マッピングの結果としてのメッセージ
readHeaders
protected MapSE<StringSE,ObjectSE> readHeaders(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) readPayload
protected ObjectSE readPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage)