クラス 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
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
fromHeaders
(MessageHeaders headers, org.eclipse.paho.mqttv5.common.packet.MqttProperties target) void
setInboundHeaderNames
(StringSE... inboundHeaderNames) MQTT メッセージプロパティをメッセージヘッダーにマップするためのパターンのリストを提供します。void
setOutboundHeaderNames
(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