Class MessageHelper

java.lang.Object
org.eclipse.hono.util.MessageHelper

public final class MessageHelper extends Object
Constants for working with Hono API messages.
  • Field Details

    • ANNOTATION_X_OPT_RETAIN

      public static final String ANNOTATION_X_OPT_RETAIN
      The name of the AMQP 1.0 message annotation that is used to indicate that the sender of the message intended the message to be retained in the MQTT sense. The value of the property is a boolean. If a message does not contain this annotation, then a consumer must process the message as if the annotation exists and has a value of false.
      See Also:
    • APP_PROPERTY_CACHE_CONTROL

      public static final String APP_PROPERTY_CACHE_CONTROL
      The name of the AMQP 1.0 message application property containing the caching directive to follow for the body of the message.
      See Also:
    • APP_PROPERTY_DEVICE_ID

      public static final String APP_PROPERTY_DEVICE_ID
      The name of the AMQP 1.0 message application property containing the id of the device that has reported the data belongs to.
      See Also:
    • APP_PROPERTY_GATEWAY_ID

      public static final String APP_PROPERTY_GATEWAY_ID
      The name of the AMQP 1.0 message application property containing the id of the gateway that wants to report data on behalf of another device.
      See Also:
    • APP_PROPERTY_REGISTRATION_STATUS

      public static final String APP_PROPERTY_REGISTRATION_STATUS
      The name of the AMQP 1.0 message application property containing the flag denoting an event sent whenever a device was auto-provisioned.
      See Also:
    • APP_PROPERTY_LIFESPAN

      public static final String APP_PROPERTY_LIFESPAN
      The name of the AMQP 1.0 message application property containing a lifespan value in seconds.
      See Also:
    • APP_PROPERTY_ORIG_ADDRESS

      public static final String APP_PROPERTY_ORIG_ADDRESS
      The name of the AMQP 1.0 application property that is used to convey the address that a message has been originally published to by a device.
      See Also:
    • APP_PROPERTY_ORIG_ADAPTER

      public static final String APP_PROPERTY_ORIG_ADAPTER
      The name of the AMQP 1.0 message application property containing the name of the protocol adapter over which an uploaded message has originally been received.
      See Also:
    • APP_PROPERTY_QOS

      public static final String APP_PROPERTY_QOS
      The name of the AMQP 1.0 message application property containing the QoS level of the message as set by the device.
      See Also:
    • APP_PROPERTY_RESOURCE

      public static final String APP_PROPERTY_RESOURCE
      The name of the AMQP 1.0 message application property containing the resource a message is addressed at.
      See Also:
    • APP_PROPERTY_STATUS

      public static final String APP_PROPERTY_STATUS
      The name of the AMQP 1.0 message application property containing the status code indicating the outcome of processing a request.
      See Also:
    • APP_PROPERTY_TENANT_ID

      public static final String APP_PROPERTY_TENANT_ID
      The name of the AMQP 1.0 message application property containing the id of the tenant the device that has reported the data belongs to.
      See Also:
    • APP_PROPERTY_RESOURCE_VERSION

      public static final String APP_PROPERTY_RESOURCE_VERSION
      The name of the AMQP 1.0 message application property containing the resource version expected by the client.
      See Also:
    • APP_PROPERTY_CMD_VIA

      public static final String APP_PROPERTY_CMD_VIA
      The name of the AMQP 1.0 message application property containing the gateway through which a command is sent.
      See Also:
    • SYS_HEADER_PROPERTY_DELIVERY_COUNT

      public static final String SYS_HEADER_PROPERTY_DELIVERY_COUNT
      The AMQP 1.0 delivery-count message header property.
      See Also:
    • SYS_HEADER_PROPERTY_DURABLE

      public static final String SYS_HEADER_PROPERTY_DURABLE
      The AMQP 1.0 durable message header property.
      See Also:
    • SYS_HEADER_PROPERTY_FIRST_ACQUIRER

      public static final String SYS_HEADER_PROPERTY_FIRST_ACQUIRER
      The AMQP 1.0 first-acquirer message header property.
      See Also:
    • SYS_HEADER_PROPERTY_PRIORITY

      public static final String SYS_HEADER_PROPERTY_PRIORITY
      The AMQP 1.0 priority message header property.
      See Also:
    • SYS_HEADER_PROPERTY_TTL

      public static final String SYS_HEADER_PROPERTY_TTL
      The AMQP 1.0 ttl message header property.
      See Also:
    • SYS_PROPERTY_ABSOLUTE_EXPIRY_TIME

      public static final String SYS_PROPERTY_ABSOLUTE_EXPIRY_TIME
      The AMQP 1.0 absolute-expiry-time message property.
      See Also:
    • SYS_PROPERTY_CONTENT_ENCODING

      public static final String SYS_PROPERTY_CONTENT_ENCODING
      The AMQP 1.0 content-encoding message property.
      See Also:
    • SYS_PROPERTY_CONTENT_TYPE

      public static final String SYS_PROPERTY_CONTENT_TYPE
      The AMQP 1.0 content-type message property.
      See Also:
    • SYS_PROPERTY_CORRELATION_ID

      public static final String SYS_PROPERTY_CORRELATION_ID
      The AMQP 1.0 correlation-id message property.
      See Also:
    • SYS_PROPERTY_CREATION_TIME

      public static final String SYS_PROPERTY_CREATION_TIME
      The AMQP 1.0 creation-time message property.
      See Also:
    • SYS_PROPERTY_GROUP_ID

      public static final String SYS_PROPERTY_GROUP_ID
      The AMQP 1.0 group-id message property.
      See Also:
    • SYS_PROPERTY_GROUP_SEQUENCE

      public static final String SYS_PROPERTY_GROUP_SEQUENCE
      The AMQP 1.0 group-sequence message property.
      See Also:
    • SYS_PROPERTY_MESSAGE_ID

      public static final String SYS_PROPERTY_MESSAGE_ID
      The AMQP 1.0 message-id message property.
      See Also:
    • SYS_PROPERTY_REPLY_TO

      public static final String SYS_PROPERTY_REPLY_TO
      The AMQP 1.0 reply-to message property.
      See Also:
    • SYS_PROPERTY_REPLY_TO_GROUP_ID

      public static final String SYS_PROPERTY_REPLY_TO_GROUP_ID
      The AMQP 1.0 reply-to-group-id message property.
      See Also:
    • SYS_PROPERTY_SUBJECT

      public static final String SYS_PROPERTY_SUBJECT
      The AMQP 1.0 subject message property.
      See Also:
    • SYS_PROPERTY_USER_ID

      public static final String SYS_PROPERTY_USER_ID
      The AMQP 1.0 user-id message property.
      See Also:
    • SYS_PROPERTY_TO

      public static final String SYS_PROPERTY_TO
      The AMQP 1.0 to message property.
      See Also:
    • TTD_VALUE_UNLIMITED

      public static final int TTD_VALUE_UNLIMITED
      The time-til-disconnect value to use for indicating that a device will remain connected until further notice.
      See Also:
    • CONTENT_TYPE_APPLICATION_JSON

      public static final String CONTENT_TYPE_APPLICATION_JSON
      The MIME type representing the String representation of a JSON Object.
      See Also:
    • CONTENT_TYPE_OCTET_STREAM

      public static final String CONTENT_TYPE_OCTET_STREAM
      The MIME type representing an opaque array of bytes.
      See Also:
    • CONTENT_TYPE_TEXT_PLAIN

      public static final String CONTENT_TYPE_TEXT_PLAIN
      The MIME type representing plain text.
      See Also: