public class IotHubTransportMessage extends Message
DEFAULT_IOTHUB_MESSAGE_CHARSET| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceOperations |
getDeviceOperationType()
Getter for the device operation type
|
IotHubMethod |
getIotHubMethod()
Getter for the IoT Hub method
|
MessageCallback |
getMessageCallback() |
Object |
getMessageCallbackContext() |
String |
getMethodName()
Getter for the method name of device method operation
|
String |
getRequestId()
Getter for the request id
|
String |
getStatus()
Getter for the request status
|
String |
getUriPath()
Getter for the URI path
|
String |
getVersion()
Getter for the message version
|
boolean |
isMessageAckNeeded(IotHubClientProtocol protocol) |
void |
setDeviceOperationType(DeviceOperations deviceOperationType)
Setter for the device operation type
|
void |
setIotHubMethod(IotHubMethod iotHubMethod)
Setter for the IoT Hub method
|
void |
setMessageCallback(MessageCallback messageCallback) |
void |
setMessageCallbackContext(Object messageCallbackContext) |
void |
setMethodName(String methodName)
Setter for the method name of device method operation
|
void |
setRequestId(String id)
Setter for the message id
|
void |
setStatus(String status)
Setter for the status
|
void |
setUriPath(String uriPath)
Setter for the URI path
|
void |
setVersion(String version)
Setter for the message version
|
String |
toString() |
getBodyStream, getBytes, getConnectionDeviceId, getConnectionModuleId, getContentEncoding, getContentType, getCorrelationId, getCreationTimeUTC, getCreationTimeUTCString, getDeliveryAcknowledgement, getInputName, getIotHubConnectionString, getMessageId, getMessageType, getOutputName, getProperties, getProperty, getTo, getUserId, isExpired, isSecurityMessage, setAbsoluteExpiryTime, setAsSecurityMessage, setConnectionDeviceId, setConnectionModuleId, setContentEncoding, setContentType, setContentTypeFinal, setCorrelationId, setCreationTimeUTC, setExpiryTime, setInputName, setIotHubConnectionString, setMessageId, setMessageType, setOutputName, setProperty, setUserIdpublic IotHubTransportMessage(byte[] data,
MessageType messageType)
data - The byte array of the message.messageType - The messageType of the message.public IotHubTransportMessage(String body)
body - The body of the new Message instance. It is internally serialized to a byte array using UTF-8 encoding.public IotHubTransportMessage(byte[] data,
MessageType messageType,
String messageId,
String correlationId,
MessageProperty[] messageProperties)
public MessageCallback getMessageCallback()
public void setMessageCallback(MessageCallback messageCallback)
public Object getMessageCallbackContext()
public void setMessageCallbackContext(Object messageCallbackContext)
public void setVersion(String version)
version - The String containing the version.public String getVersion()
public void setRequestId(String id)
id - The String containing the id.public String getRequestId()
public void setStatus(String status)
status - The String containing the status.public String getStatus()
public void setDeviceOperationType(DeviceOperations deviceOperationType)
deviceOperationType - The DeviceOperations enum value.public DeviceOperations getDeviceOperationType()
public boolean isMessageAckNeeded(IotHubClientProtocol protocol)
public void setMethodName(String methodName)
methodName - The String containing the method name of device method operation.public String getMethodName()
public void setIotHubMethod(IotHubMethod iotHubMethod)
iotHubMethod - The enum containing the IoT Hub method.public void setUriPath(String uriPath)
uriPath - The string with the URI path.public IotHubMethod getIotHubMethod()
public String getUriPath()
Copyright © 2020. All rights reserved.