Class MqttHeaderAccessor
java.lang.Object
org.springframework.integration.mqtt.support.MqttHeaderAccessor
Helper for typed access to incoming MQTT message headers.
- Since:
- 5.3
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
Return the duplicate header.static Integer
Return the MQTT message id.static Integer
receivedQos
(Message<?> message) Return the received QOS header.static Boolean
receivedRetained
(Message<?> message) Return the received retained header.static String
receivedTopic
(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.
-