HttpsTransportManager Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. transport. https. HttpsTransportManager
- com.
Implements
public class HttpsTransportManager
implements IotHubTransportManager
Implementation of the transport manager for https.
Constructor Summary
Constructor | Description |
---|---|
HttpsTransportManager(DeviceClientConfig config) |
Constructor |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the connection destroying the Https |
Response |
getFileUploadSasUri(IotHubTransportMessage message) |
Method |
invokeMethod(MethodRequest methodRequest, String deviceId, String moduleId)
Invoke a direct method to the provided uri |
void |
open()
Opens the connection by creating a new instance of the Https |
void |
open(String[] topics)
Opens the connection by creating a new instance of the Https |
Message |
receive()
Pull the Iot |
Response |
send(IotHubTransportMessage message, Map<String,String> additionalHeaders)
This is a blocking send message. |
Response |
sendFileUploadNotification(IotHubTransportMessage message) |
Methods inherited from java.lang.Object
Constructor Details
HttpsTransportManager
public HttpsTransportManager(DeviceClientConfig config)
Constructor
Parameters:
Throws:
Method Details
close
public void close()
Close the connection destroying the HttpsIotHubConnection instance.
getFileUploadSasUri
public ResponseMessage getFileUploadSasUri(IotHubTransportMessage message)
Parameters:
Throws:
invokeMethod
public MethodResult invokeMethod(MethodRequest methodRequest, String deviceId, String moduleId)
Invoke a direct method to the provided uri
Parameters:
Returns:
Throws:
open
public void open()
Opens the connection by creating a new instance of the HttpsIotHubConnection.
open
public void open(String[] topics)
Opens the connection by creating a new instance of the HttpsIotHubConnection. The provided topics have no effect for HTTPS protocol, and it is ignored.
Parameters:
receive
public Message receive()
Pull the IotHub looking for new message.
Returns:
null
is there is no new message to read.Throws:
send
public ResponseMessage send(IotHubTransportMessage message, Map
This is a blocking send message. It send the provide message, wait for the IotHub answer, and return is in the ResponseMessage, which contains the status and the payload.
Parameters:
Returns:
Throws:
sendFileUploadNotification
public ResponseMessage sendFileUploadNotification(IotHubTransportMessage message)
Parameters:
Throws:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for