Package org.eclipse.hono.util
Class MessageHelper
java.lang.Object
org.eclipse.hono.util.MessageHelper
Constants for working with Hono API messages.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
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.static final String
The name of the AMQP 1.0 message application property containing the caching directive to follow for the body of the message.static final String
The name of the AMQP 1.0 message application property containing the gateway through which a command is sent.static final String
The name of the AMQP 1.0 message application property containing the id of the device that has reported the data belongs to.static final String
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.static final String
The name of the AMQP 1.0 message application property containing a lifespan value in seconds.static final String
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.static final String
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.static final String
The name of the AMQP 1.0 message application property containing the QoS level of the message as set by the device.static final String
The name of the AMQP 1.0 message application property containing the flag denoting an event sent whenever a device was auto-provisioned.static final String
The name of the AMQP 1.0 message application property containing the resource a message is addressed at.static final String
The name of the AMQP 1.0 message application property containing the resource version expected by the client.static final String
The name of the AMQP 1.0 message application property containing the status code indicating the outcome of processing a request.static final String
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.static final String
The MIME type representing the String representation of a JSON Object.static final String
The MIME type representing an opaque array of bytes.static final String
The MIME type representing plain text.static final String
The AMQP 1.0 delivery-count message header property.static final String
The AMQP 1.0 durable message header property.static final String
The AMQP 1.0 first-acquirer message header property.static final String
The AMQP 1.0 priority message header property.static final String
The AMQP 1.0 ttl message header property.static final String
The AMQP 1.0 absolute-expiry-time message property.static final String
The AMQP 1.0 content-encoding message property.static final String
The AMQP 1.0 content-type message property.static final String
The AMQP 1.0 correlation-id message property.static final String
The AMQP 1.0 creation-time message property.static final String
The AMQP 1.0 group-id message property.static final String
The AMQP 1.0 group-sequence message property.static final String
The AMQP 1.0 message-id message property.static final String
The AMQP 1.0 reply-to message property.static final String
The AMQP 1.0 reply-to-group-id message property.static final String
The AMQP 1.0 subject message property.static final String
The AMQP 1.0 to message property.static final String
The AMQP 1.0 user-id message property.static final int
The time-til-disconnect value to use for indicating that a device will remain connected until further notice. -
Method Summary
-
Field Details
-
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 offalse
.- See Also:
-
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
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
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
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
The name of the AMQP 1.0 message application property containing a lifespan value in seconds.- See Also:
-
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
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
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
The name of the AMQP 1.0 message application property containing the resource a message is addressed at.- See Also:
-
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
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
The name of the AMQP 1.0 message application property containing the resource version expected by the client.- See Also:
-
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
The AMQP 1.0 delivery-count message header property.- See Also:
-
SYS_HEADER_PROPERTY_DURABLE
The AMQP 1.0 durable message header property.- See Also:
-
SYS_HEADER_PROPERTY_FIRST_ACQUIRER
The AMQP 1.0 first-acquirer message header property.- See Also:
-
SYS_HEADER_PROPERTY_PRIORITY
The AMQP 1.0 priority message header property.- See Also:
-
SYS_HEADER_PROPERTY_TTL
The AMQP 1.0 ttl message header property.- See Also:
-
SYS_PROPERTY_ABSOLUTE_EXPIRY_TIME
The AMQP 1.0 absolute-expiry-time message property.- See Also:
-
SYS_PROPERTY_CONTENT_ENCODING
The AMQP 1.0 content-encoding message property.- See Also:
-
SYS_PROPERTY_CONTENT_TYPE
The AMQP 1.0 content-type message property.- See Also:
-
SYS_PROPERTY_CORRELATION_ID
The AMQP 1.0 correlation-id message property.- See Also:
-
SYS_PROPERTY_CREATION_TIME
The AMQP 1.0 creation-time message property.- See Also:
-
SYS_PROPERTY_GROUP_ID
The AMQP 1.0 group-id message property.- See Also:
-
SYS_PROPERTY_GROUP_SEQUENCE
The AMQP 1.0 group-sequence message property.- See Also:
-
SYS_PROPERTY_MESSAGE_ID
The AMQP 1.0 message-id message property.- See Also:
-
SYS_PROPERTY_REPLY_TO
The AMQP 1.0 reply-to message property.- See Also:
-
SYS_PROPERTY_REPLY_TO_GROUP_ID
The AMQP 1.0 reply-to-group-id message property.- See Also:
-
SYS_PROPERTY_SUBJECT
The AMQP 1.0 subject message property.- See Also:
-
SYS_PROPERTY_USER_ID
The AMQP 1.0 user-id message property.- See Also:
-
SYS_PROPERTY_TO
The AMQP 1.0 to message property.- See Also:
-
TTD_VALUE_UNLIMITED
public static final int TTD_VALUE_UNLIMITEDThe time-til-disconnect value to use for indicating that a device will remain connected until further notice.- See Also:
-
CONTENT_TYPE_APPLICATION_JSON
The MIME type representing the String representation of a JSON Object.- See Also:
-
CONTENT_TYPE_OCTET_STREAM
The MIME type representing an opaque array of bytes.- See Also:
-
CONTENT_TYPE_TEXT_PLAIN
The MIME type representing plain text.- See Also:
-