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,
java.lang.String messageId,
java.lang.String correlationId,
MessageProperty[] messageProperties) |
IotHubTransportMessage(java.lang.String body)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceOperations |
getDeviceOperationType()
Getter for the device operation type
|
HttpsMethod |
getIotHubMethod()
Getter for the HTTPS method
|
MessageCallback |
getMessageCallback() |
java.lang.Object |
getMessageCallbackContext() |
java.lang.String |
getMethodName()
Getter for the method name of device method operation
|
java.lang.String |
getRequestId()
Getter for the request id
|
java.lang.String |
getStatus()
Getter for the request status
|
java.lang.String |
getUriPath()
Getter for the URI path
|
int |
getVersion()
Getter for the message version
|
boolean |
isMessageAckNeeded(IotHubClientProtocol protocol) |
void |
setDeviceOperationType(DeviceOperations deviceOperationType)
Setter for the device operation type
|
void |
setIotHubMethod(HttpsMethod iotHubMethod)
Setter for the IoT Hub method
|
void |
setMessageCallback(MessageCallback messageCallback) |
void |
setMessageCallbackContext(java.lang.Object messageCallbackContext) |
void |
setMethodName(java.lang.String methodName)
Setter for the method name of device method operation
|
void |
setRequestId(java.lang.String id)
Setter for the message id
|
void |
setStatus(java.lang.String status)
Setter for the status
|
void |
setUriPath(java.lang.String uriPath)
Setter for the URI path
|
void |
setVersion(int version)
Setter for the message version
|
java.lang.String |
toString() |
getBodyStream, getBytes, getConnectionDeviceId, getConnectionModuleId, getContentEncoding, getContentType, getCorrelatingMessageCallback, getCorrelatingMessageCallbackContext, getCorrelationId, getCreationTimeUTC, getCreationTimeUTCString, getDeliveryAcknowledgement, getInputName, getIotHubConnectionString, getMessageId, getMessageType, getOutputName, getProperties, getProperty, getTo, getUserId, isExpired, isSecurityMessage, setAbsoluteExpiryTime, setAsSecurityMessage, setConnectionDeviceId, setConnectionModuleId, setContentEncoding, setContentType, setCorrelatingMessageCallback, setCorrelatingMessageCallbackContext, 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(java.lang.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,
java.lang.String messageId,
java.lang.String correlationId,
MessageProperty[] messageProperties)
public MessageCallback getMessageCallback()
public void setMessageCallback(MessageCallback messageCallback)
public java.lang.Object getMessageCallbackContext()
public void setMessageCallbackContext(java.lang.Object messageCallbackContext)
public void setVersion(int version)
version - The String containing the version.public int getVersion()
public void setRequestId(java.lang.String id)
id - The String containing the id.public java.lang.String getRequestId()
public void setStatus(java.lang.String status)
status - The String containing the status.public java.lang.String getStatus()
public void setDeviceOperationType(DeviceOperations deviceOperationType)
deviceOperationType - The DeviceOperations enum value.public DeviceOperations getDeviceOperationType()
public boolean isMessageAckNeeded(IotHubClientProtocol protocol)
public void setMethodName(java.lang.String methodName)
methodName - The String containing the method name of device method operation.public java.lang.String getMethodName()
public void setIotHubMethod(HttpsMethod iotHubMethod)
iotHubMethod - The HTTPS method.public void setUriPath(java.lang.String uriPath)
uriPath - The string with the URI path.public HttpsMethod getIotHubMethod()
public java.lang.String getUriPath()
Copyright © 2023. All rights reserved.