public class Insecure
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private com.google.gson.Gson |
gson |
| Constructor and Description |
|---|
Insecure() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
insecure()
A utility URL that returns a 200 response when the webservice is up and running.
|
javax.ws.rs.core.Response |
registerDevice(java.lang.String name,
java.lang.String ipAddress)
Method for devices to register their IP address with the service when first establishing a connection to the network.
|
javax.ws.rs.core.Response |
sendCommand(java.lang.String deviceName,
java.lang.String commandName,
java.lang.String commandValue)
Method for sending a command to a device.
|
javax.ws.rs.core.Response |
sendMail(java.lang.String deviceName,
java.lang.String message)
Method providing email functionality to IoT Devices
|
javax.ws.rs.core.Response |
sendMailWithAddress(java.lang.String toEmail,
java.lang.String deviceName,
java.lang.String message) |
public javax.ws.rs.core.Response insecure()
public javax.ws.rs.core.Response registerDevice(java.lang.String name,
java.lang.String ipAddress)
name - a String representing the permanent name of the device that other devices on the network use when targeting itipAddress - a String of the device's IP address on the IoT networkpublic javax.ws.rs.core.Response sendCommand(java.lang.String deviceName,
java.lang.String commandName,
java.lang.String commandValue)
deviceName - the Device identifier for the target devicecommandName - the Command identifier for the command being sentcommandValue - the Command value to sendpublic javax.ws.rs.core.Response sendMail(java.lang.String deviceName,
java.lang.String message)
deviceName - a String representing the name of the device sending the messagemessage - a String of the message to be sentpublic javax.ws.rs.core.Response sendMailWithAddress(java.lang.String toEmail,
java.lang.String deviceName,
java.lang.String message)