com.microsoft.azure.iot.service.transport.http.HttpMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iothub-java-service-client Show documentation
Show all versions of iothub-java-service-client Show documentation
The Microsoft Azure IoT Service SDK for Java
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.iot.service.transport.http;
/**
* 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.
*/
public interface HttpMessage
{
/** The prefix to be added to an HTTPS application-defined property. */
String HTTPS_APP_PROPERTY_PREFIX = "iothub-app-";
/**
* Gets the message body.
* @return The message body.
*/
byte[] getBody();
/**
* Gets the content type string.
* @return The message content-type.
*/
String getContentType();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy