クラス 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 実装。 代わりに EmbeddedHeadersJsonMessageMapper の使用を検討してください。
- 導入:
- 2.0
- 作成者:
- Jeremy Grelle, Oleg Zhurakousky, Mark Fisher, Artem Bilan, Gary Russell
ネストされたクラスの概要
ネストされたクラスフィールド概要
クラス 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 @Nullable ObjectSEreadPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) Message<?> 提供されたオブジェクトをMessageに変換し、必要に応じて提供されたヘッダーを提供します。クラス AbstractJsonInboundMessageMapper から継承されたメソッド
isMapToPayload, setHeaderTypes, setMapToPayloadクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース 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 @Nullable MapSE<StringSE,ObjectSE> readHeaders(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage) readPayload
protected @Nullable ObjectSE readPayload(JsonInboundMessageMapper.JsonMessageParser<?> parser, StringSE jsonMessage)