IotHubTransportMessage Class
- java.
lang. Object - Message
- com.
microsoft. azure. sdk. iot. device. transport. IotHubTransportMessage
- 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 |
Https |
getIotHubMethod()
Getter for the HTTPS method |
Message |
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 |
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(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(int version)
Setter for the message version |
String | toString() |
Inherited Members
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 DeviceOperations getDeviceOperationType()
Getter for the device operation type
Returns:
getIotHubMethod
public HttpsMethod getIotHubMethod()
Getter for the HTTPS 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 int getVersion()
Getter for the message version
Returns:
isMessageAckNeeded
public boolean isMessageAckNeeded(IotHubClientProtocol protocol)
Parameters:
setDeviceOperationType
public void setDeviceOperationType(DeviceOperations deviceOperationType)
Setter for the device operation type
Parameters:
setIotHubMethod
public void setIotHubMethod(HttpsMethod 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(int version)
Setter for the message version
Parameters:
toString
public String toString()
Applies to
Azure SDK for Java