MessageProperty Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. MessageProperty
- com.
public final class MessageProperty
An IoT Hub message property.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final java.lang.String | CONNECTION_DEVICE_ID |
static final java.lang.String | CONNECTION_MODULE_ID |
static final java.lang.String | IOTHUB_CONTENT_ENCODING |
static final java.lang.String | IOTHUB_CONTENT_TYPE |
static final java.lang.String | IOTHUB_CREATION_TIME_UTC |
static final java.lang.String | IOTHUB_SECURITY_INTERFACE_ID |
static final java.lang.String | IOTHUB_SECURITY_INTERFACE_ID_VALUE |
static final java.lang.String | OUTPUT_NAME_PROPERTY |
static final java.util.Set<java.lang.String> |
RESERVED_PROPERTY_NAMES
A set of reserved property names. |
Constructor Summary
Modifier | Constructor | Description | |
---|---|---|---|
protected | MessageProperty() | ||
MessageProperty(String name, String value) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the property name. |
java.lang.String |
getValue()
Returns the property value. |
boolean |
hasSameName(String name)
Equivalent to property. |
static boolean |
isValidAppProperty(String name, String value)
Returns whether the property is a valid application property. |
static boolean |
isValidSystemProperty(String name, String value)
Returns whether the property is a valid system property. |
Methods inherited from java.lang.Object
Field Details
CONNECTION_DEVICE_ID
public static final String CONNECTION_DEVICE_ID
CONNECTION_MODULE_ID
public static final String CONNECTION_MODULE_ID
IOTHUB_CONTENT_ENCODING
public static final String IOTHUB_CONTENT_ENCODING
IOTHUB_CONTENT_TYPE
public static final String IOTHUB_CONTENT_TYPE
IOTHUB_CREATION_TIME_UTC
public static final String IOTHUB_CREATION_TIME_UTC
IOTHUB_SECURITY_INTERFACE_ID
public static final String IOTHUB_SECURITY_INTERFACE_ID
IOTHUB_SECURITY_INTERFACE_ID_VALUE
public static final String IOTHUB_SECURITY_INTERFACE_ID_VALUE
OUTPUT_NAME_PROPERTY
public static final String OUTPUT_NAME_PROPERTY
RESERVED_PROPERTY_NAMES
public static final Set
A set of reserved property names. The reserved property names are interpreted in a meaningful way by the device and the IoT Hub.
Constructor Details
MessageProperty
protected MessageProperty()
MessageProperty
public MessageProperty(String name, String value)
Constructor.
Parameters:
Method Details
getName
public String getName()
Returns the property name.
Returns:
getValue
public String getValue()
Returns the property value.
Returns:
hasSameName
public boolean hasSameName(String name)
Equivalent to property.getName().equalsIgnoreCase(name).
Parameters:
Returns:
isValidAppProperty
public static boolean isValidAppProperty(String name, String value)
Returns whether the property is a valid application property. The property is valid if it is not one of the reserved properties, only uses US-ASCII
Parameters:
Returns:
isValidSystemProperty
public static boolean isValidSystemProperty(String name, String value)
Returns whether the property is a valid system property. The property is valid if it is one of the reserved properties and only uses US-ASCII
Parameters:
Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour