Class MqttHeaderAccessor

java.lang.Object
org.springframework.integration.mqtt.support.MqttHeaderAccessor

@Deprecated(since="7.2", forRemoval=true) public final class MqttHeaderAccessor extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 7.2 in favor of the spring-integration-mqtt-client module.
Helper for typed access to incoming MQTT message headers.
Since:
5.3
Author:
Gary Russell, Jaehong Park
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Boolean
    duplicate(Message<?> message)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the duplicate header.
    static @Nullable Integer
    id(Message<?> message)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the MQTT message id.
    static @Nullable Integer
    receivedQos(Message<?> message)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the received QOS header.
    static @Nullable Boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the received retained header.
    static @Nullable String
    receivedTopic(Message<?> message)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the received topic header.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • receivedTopic

      public static @Nullable String receivedTopic(Message<?> message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the received topic header.
      Parameters:
      message - the message.
      Returns:
      the header.
    • id

      public static @Nullable Integer id(Message<?> message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the MQTT message id.
      Parameters:
      message - the message.
      Returns:
      the header.
    • receivedQos

      public static @Nullable Integer receivedQos(Message<?> message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the received QOS header.
      Parameters:
      message - the message.
      Returns:
      the header.
    • receivedRetained

      public static @Nullable Boolean receivedRetained(Message<?> message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the received retained header.
      Parameters:
      message - the message.
      Returns:
      the header.
    • duplicate

      public static @Nullable Boolean duplicate(Message<?> message)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the duplicate header.
      Parameters:
      message - the message.
      Returns:
      the header.