public class JTelemetry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
JTelemetry.HttpResponse
Represents an HTTP response returned by a server.
|
class |
JTelemetry.Payload
Represents a payload containing data entries to be submitted to a server
in a single request.
|
Constructor and Description |
---|
JTelemetry(java.lang.String recipient)
Constructs a new
JTelemetry object with the given recipient
address. |
Modifier and Type | Method and Description |
---|---|
JTelemetry.Payload |
createPayload()
Creates a new
JTelemetry.Payload parented by this JTelemetry . |
java.lang.String |
getRecipient()
Returns the recipient address of this
JTelemetry . |
public JTelemetry(java.lang.String recipient) throws java.lang.IllegalArgumentException
JTelemetry
object with the given recipient
address. This address must have an HTTP or HTTPS protocol.recipient
- The recipient address of this JTelemetry
java.lang.IllegalArgumentException
- If the address's protocol is not validpublic java.lang.String getRecipient()
JTelemetry
.JTelemetry
public JTelemetry.Payload createPayload()
JTelemetry.Payload
parented by this JTelemetry
.JTelemetry.Payload