public final class IotHubUri
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
API_VERSION
The API version will be passed as a param in the URI.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IotHubUri() |
|
IotHubUri(java.lang.String iotHubHostname,
java.lang.String deviceId,
java.lang.String iotHubMethodPath,
java.util.Map<java.lang.String,java.lang.String> queryParams,
java.lang.String moduleId)
Constructor.
|
|
IotHubUri(java.lang.String iotHubHostname,
java.lang.String deviceId,
java.lang.String iotHubMethodPath,
java.lang.String moduleId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getApiVersionString() |
java.lang.String |
getHostname()
Returns the string representation of the IoT Hub hostname.
|
java.lang.String |
getPath()
Returns the string representation of the IoT Hub path.
|
static java.lang.String |
getResourceUri(java.lang.String iotHubHostname,
java.lang.String deviceId,
java.lang.String moduleId)
Returns the string representation of the IoT Hub resource URI.
|
java.lang.String |
toString()
Returns the string representation of the IoT Hub URI.
|
java.lang.String |
toStringWithoutApiVersion() |
public static final java.lang.String API_VERSION
public IotHubUri(java.lang.String iotHubHostname,
java.lang.String deviceId,
java.lang.String iotHubMethodPath,
java.util.Map<java.lang.String,java.lang.String> queryParams,
java.lang.String moduleId)
iotHubHostname - the IoT Hub hostname.deviceId - the device ID.iotHubMethodPath - the path from the IoT Hub resource to the
method.queryParams - the URL query parameters. Can be null.moduleId - the module ID. May be nullpublic IotHubUri(java.lang.String iotHubHostname,
java.lang.String deviceId,
java.lang.String iotHubMethodPath,
java.lang.String moduleId)
new IotHubUri(iotHubHostname, deviceId,
iotHubMethodPath, null).iotHubHostname - the IoT Hub hostname.deviceId - the device ID.iotHubMethodPath - the path from the IoT Hub resource to the
method.moduleId - the module ID.protected IotHubUri()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringWithoutApiVersion()
public java.lang.String getHostname()
public java.lang.String getPath()
public static java.lang.String getResourceUri(java.lang.String iotHubHostname,
java.lang.String deviceId,
java.lang.String moduleId)
iotHubHostname - the IoT Hub hostname.deviceId - the device ID.moduleId - the module ID.public static java.lang.String getApiVersionString()
Copyright © 2023. All rights reserved.