IotHubTransportMessage 类

定义

Extends Message, adding transport artifacts.

public class IotHubTransportMessage extends Message
继承
java.lang.Object
IotHubTransportMessage

继承成员

Message.DEFAULT_IOTHUB_MESSAGE_CHARSET Message.getBodyStream() Message.getBytes() Message.getConnectionDeviceId() Message.getConnectionModuleId() Message.getContentEncoding() Message.getContentType() Message.getCorrelatingMessageCallback() Message.getCorrelatingMessageCallbackContext() Message.getCorrelationId() Message.getCreationTimeUTC() Message.getCreationTimeUTCString() Message.getDeliveryAcknowledgement() Message.getInputName() Message.getIotHubConnectionString() Message.getMessageId() Message.getMessageType() Message.getOutputName() Message.getProperties() Message.getProperty(String name) Message.getTo() Message.getUserId() Message.isExpired() Message.isSecurityMessage() Message.Message() Message.Message(ByteArrayInputStream stream) Message.Message(byte[] body) Message.Message(String body) Message.setAbsoluteExpiryTime(long absoluteTimeout) Message.setAsSecurityMessage() Message.setConnectionDeviceId(String connectionDeviceId) Message.setConnectionModuleId(String connectionModuleId) Message.setContentEncoding(String contentEncoding) Message.setContentType(String contentType) Message.setContentTypeFinal(String contentType) Message.setCorrelatingMessageCallback(CorrelatingMessageCallback correlatingMessageCallback) Message.setCorrelatingMessageCallbackContext(Object correlatingMessageCallbackContext) Message.setCorrelationId(String correlationId) Message.setCreationTimeUTC(Date creationTimeUTC) Message.setExpiryTime(long timeOut) Message.setInputName(String inputName) Message.setIotHubConnectionString(IotHubConnectionString iotHubConnectionString) Message.setMessageId(String messageId) Message.setMessageType(MessageType type) Message.setOutputName(String outputName) Message.setProperty(String name, String value) Message.setUserId(String userId)

构造函数

IotHubTransportMessage(byte[] data, MessageType messageType)

Constructor with binary data and message type

IotHubTransportMessage(byte[] data, MessageType messageType, String messageId, String correlationId, MessageProperty[] messageProperties)
IotHubTransportMessage(String body)

Constructor.

方法

getDeviceOperationType()

Getter for the device operation type

getIotHubMethod()

Getter for the IoT Hub method

getMessageCallback()
getMessageCallbackContext()
getMethodName()

Getter for the method name of device method operation

getRequestId()

Getter for the request id

getStatus()

Getter for the request status

getUriPath()

Getter for the URI path

getVersion()

Getter for the message version

isMessageAckNeeded(IotHubClientProtocol protocol)
setDeviceOperationType(DeviceOperations deviceOperationType)

Setter for the device operation type

setIotHubMethod(IotHubMethod iotHubMethod)

Setter for the IoT Hub method

setMessageCallback(MessageCallback messageCallback)
setMessageCallbackContext(Object messageCallbackContext)
setMethodName(String methodName)

Setter for the method name of device method operation

setRequestId(String id)

Setter for the message id

setStatus(String status)

Setter for the status

setUriPath(String uriPath)

Setter for the URI path

setVersion(String version)

Setter for the message version

toString()

适用于