HttpsMessage Interface

public interface HttpsMessage

An HTTPS message. An HTTPS message is distinguished from a plain IoT Hub message by its property names, which are prefixed with 'iothub-app-'; and by the explicit specification of a content-type.

Field Summary

Modifier and Type Field and Description
String HTTPS_APP_PROPERTY_PREFIX

The prefix to be added to an HTTPS application-defined property.

String HTTPS_SYSTEM_PROPERTY_PREFIX

The prefix to be added to an HTTPS system-defined property.

Method Summary

Modifier and Type Method and Description
byte [] getBody()

Gets the message body.

String getContentType()

Gets the message content type.

MessageProperty [] getProperties()

Gets the collection of message properties.

Map<String, String> getSystemProperties()

Gets the collection of system message properties.

Field Details

HTTPS_APP_PROPERTY_PREFIX

public String HTTPS_APP_PROPERTY_PREFIX= "iothub-app-"

The prefix to be added to an HTTPS application-defined property.

HTTPS_SYSTEM_PROPERTY_PREFIX

public String HTTPS_SYSTEM_PROPERTY_PREFIX= "iothub-"

The prefix to be added to an HTTPS system-defined property.

Method Details

getBody

public byte [] getBody()

Gets the message body.

Returns:

Returns the message body.

getContentType

public String getContentType()

Gets the message content type.

Returns:

Returns the message content-type.

getProperties

public MessageProperty [] getProperties()

Gets the collection of message properties.

Returns:

Returns the message properties.

getSystemProperties

public Map getSystemProperties()

Gets the collection of system message properties.

Returns:

Returns the system message properties.

Applies to