IotHubTransportMessage Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. Message - com.
microsoft. azure. sdk. iot. device. transport. IotHubTransportMessage
- com.
- com.
public class IotHubTransportMessage
extends Message
Extends Message, adding transport artifacts.
Constructor Summary
Constructor | 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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Device |
getDeviceOperationType()
Getter for the device operation type |
Iot |
getIotHubMethod()
Getter for the IoT Hub method |
Message |
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 |
java.lang.String |
getVersion()
Getter for the message version |
boolean | isMessageAckNeeded(IotHubClientProtocol protocol) |
void |
setDeviceOperationType(DeviceTwin.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 |
java.lang.String | toString() |
Methods inherited from Message
Methods inherited from java.lang.Object
Constructor Details
IotHubTransportMessage
public IotHubTransportMessage(byte[] data, MessageType messageType)
Constructor with binary data and message type
Parameters:
IotHubTransportMessage
public IotHubTransportMessage(byte[] data, MessageType messageType, String messageId, String correlationId, MessageProperty[] messageProperties)
Parameters:
IotHubTransportMessage
public IotHubTransportMessage(String body)
Constructor.
Parameters:
Method Details
getDeviceOperationType
public DeviceTwin.DeviceOperations getDeviceOperationType()
Getter for the device operation type
Returns:
getIotHubMethod
public IotHubMethod getIotHubMethod()
Getter for the IoT Hub method
Returns:
getMessageCallback
public MessageCallback getMessageCallback()
getMessageCallbackContext
public Object getMessageCallbackContext()
getMethodName
public String getMethodName()
Getter for the method name of device method operation
Returns:
getRequestId
public String getRequestId()
Getter for the request id
Returns:
getStatus
public String getStatus()
Getter for the request status
Returns:
getUriPath
public String getUriPath()
Getter for the URI path
Returns:
getVersion
public String getVersion()
Getter for the message version
Returns:
isMessageAckNeeded
public boolean isMessageAckNeeded(IotHubClientProtocol protocol)
Parameters:
setDeviceOperationType
public void setDeviceOperationType(DeviceTwin.DeviceOperations deviceOperationType)
Setter for the device operation type
Parameters:
setIotHubMethod
public void setIotHubMethod(IotHubMethod iotHubMethod)
Setter for the IoT Hub method
Parameters:
setMessageCallback
public void setMessageCallback(MessageCallback messageCallback)
Parameters:
setMessageCallbackContext
public void setMessageCallbackContext(Object messageCallbackContext)
Parameters:
setMethodName
public void setMethodName(String methodName)
Setter for the method name of device method operation
Parameters:
setRequestId
public void setRequestId(String id)
Setter for the message id
Parameters:
setStatus
public void setStatus(String status)
Setter for the status
Parameters:
setUriPath
public void setUriPath(String uriPath)
Setter for the URI path
Parameters:
setVersion
public void setVersion(String version)
Setter for the message version
Parameters:
toString
public String toString()
Overrides:
IotHubTransportMessage.toString()