クラス MqttHeaderMapper
java.lang.ObjectSE
org.springframework.integration.mqtt.support.MqttHeaderMapper
- 実装済みのインターフェース一覧:
HeaderMapper<org.eclipse.paho.mqttv5.common.packet.MqttProperties>
public class MqttHeaderMapper
extends ObjectSE
implements HeaderMapper<org.eclipse.paho.mqttv5.common.packet.MqttProperties>
MQTTv5 メッセージプロパティマッピングのデフォルトの
HeaderMapper 実装。- 導入:
- 5.5.5
- 作成者:
- Artem Bilan
コンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidfromHeaders(MessageHeaders headers, org.eclipse.paho.mqttv5.common.packet.MqttProperties target) voidsetInboundHeaderNames(StringSE... inboundHeaderNames) MQTT メッセージプロパティをメッセージヘッダーにマップするためのパターンのリストを提供します。voidsetOutboundHeaderNames(StringSE... outboundHeaderNames) ヘッダーを PUBLISHMQTT メッセージにマップするパターンのリストを提供します。toHeaders(org.eclipse.paho.mqttv5.common.packet.MqttProperties source)
コンストラクターの詳細
MqttHeaderMapper
public MqttHeaderMapper()
メソッドの詳細
setInboundHeaderNames
MQTT メッセージプロパティをメッセージヘッダーにマップするためのパターンのリストを提供します。デフォルトでは、すべてのユーザープロパティを含む、すべての有効な MQTT PUBLISH パケットヘッダー(MqttPublishを参照)をマップします。- パラメーター:
inboundHeaderNames- マップする MQTT メッセージプロパティパターン。
setOutboundHeaderNames
ヘッダーを PUBLISHMQTT メッセージにマップするパターンのリストを提供します。デフォルトのヘッダーは、MessageHeaders.CONTENT_TYPE、MqttHeaders.MESSAGE_EXPIRY_INTERVAL、MqttHeaders.RESPONSE_TOPIC、MqttHeaders.CORRELATION_DATAです。- パラメーター:
outboundHeaderNames- マップするヘッダーパターン。
fromHeaders
public void fromHeaders(MessageHeaders headers, org.eclipse.paho.mqttv5.common.packet.MqttProperties target) - 次で指定:
- インターフェース
HeaderMapper<org.eclipse.paho.mqttv5.common.packet.MqttProperties>のfromHeaders
toHeaders
public MapSE<StringSE,ObjectSE> toHeaders(org.eclipse.paho.mqttv5.common.packet.MqttProperties source) - 次で指定:
- インターフェース
HeaderMapper<org.eclipse.paho.mqttv5.common.packet.MqttProperties>のtoHeaders