Class MqttHeaderAccessor
java.lang.Object
org.springframework.integration.mqtt.support.MqttHeaderAccessor
public final class MqttHeaderAccessor extends Object
Helper for typed access to incoming MQTT message headers.
- Since:
- 5.3
- Author:
- Gary Russell
-
Method Summary
Modifier and Type Method Description static Booleanduplicate(Message<?> message)Return the duplicate header.static Integerid(Message<?> message)Return the MQTT message id.static IntegerreceivedQos(Message<?> message)Return the received QOS header.static BooleanreceivedRetained(Message<?> message)Return the received retained header.static StringreceivedTopic(Message<?> message)Return the received topic header.
-
Method Details
-
receivedTopic
Return the received topic header.- Parameters:
message- the message.- Returns:
- the header.
-
id
Return the MQTT message id.- Parameters:
message- the message.- Returns:
- the header.
-
receivedQos
Return the received QOS header.- Parameters:
message- the message.- Returns:
- the header.
-
receivedRetained
Return the received retained header.- Parameters:
message- the message.- Returns:
- the header.
-
duplicate
Return the duplicate header.- Parameters:
message- the message.- Returns:
- the header.
-