IotHubUri 类

定义

A URI for a device to connect to an IoT Hub.

public class IotHubUri
继承
java.lang.Object
IotHubUri

构造函数

IotHubUri()
IotHubUri(String iotHubHostname, String deviceId, String iotHubMethodPath, Map<String, String> queryParams, String moduleId)

Constructor. Creates a URI to an IoT Hub method. The URI does not include a protocol. The function will safely escape the given arguments.

IotHubUri(String iotHubHostname, String deviceId, String iotHubMethodPath, String moduleId)

Constructor. Equivalent to new IotHubUri(iotHubHostname, deviceId,

iotHubMethodPath, null) 

</code> .</p>

字段

API_VERSION

The API version will be passed as a param in the URI.

方法

getApiVersionString()
getHostname()

Returns the string representation of the IoT Hub hostname.

getPath()

Returns the string representation of the IoT Hub path.

getResourceUri(String iotHubHostname, String deviceId, String moduleId)

Returns the string representation of the IoT Hub resource URI. The IoT Hub resource URI is the hostname and path component that is common to all IoT Hub communication methods between the given device and IoT Hub. Safely escapes the IoT Hub resource URI.

toString()

Returns the string representation of the IoT Hub URI.

toStringWithoutApiVersion()

适用于