IotHubEventUri Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.net.IotHubEventUri

public final class IotHubEventUri

A URI for a device to send event to an IoT Hub.

Constructor Summary

Modifier Constructor Description
protected IotHubEventUri()
IotHubEventUri(String iotHubHostname, String deviceId, String moduleId)

Constructor.

Method Summary

Modifier and Type Method and Description
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.

java.lang.String toString()

Returns the string representation of the IoT Hub event URI.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

IotHubEventUri

protected IotHubEventUri()

IotHubEventUri

public IotHubEventUri(String iotHubHostname, String deviceId, String moduleId)

Constructor. Returns a URI for a device to send event to an IoT Hub. The URI does not include a protocol.

Parameters:

iotHubHostname - the IoT Hub name.
deviceId - the device ID.
moduleId - the module ID. May be null

Method Details

getHostname

public String getHostname()

Returns the string representation of the IoT Hub hostname.

Returns:

the string representation of the IoT Hub hostname.

getPath

public String getPath()

Returns the string representation of the IoT Hub path.

Returns:

the string representation of the IoT Hub path.

toString

public String toString()

Returns the string representation of the IoT Hub event URI.

Overrides:

IotHubEventUri.toString()

Returns:

the string representation of the IoT Hub event URI.

Applies to