public class TrackerConfiguration
extends java.lang.Object
Constructor and Description |
---|
TrackerConfiguration(java.lang.String namespace,
java.lang.String appId)
Create a TrackerConfiguration instance.
|
Modifier and Type | Method and Description |
---|---|
TrackerConfiguration |
base64Encoded(boolean base64Encoded)
Whether JSONs in the payload should be base-64 encoded (default is true)
|
java.lang.String |
getAppId()
Returns the application ID.
|
java.lang.String |
getNamespace()
Returns the unique tracker namespace.
|
DevicePlatform |
getPlatform()
Returns the DevicePlatform for the tracker.
|
boolean |
isBase64Encoded()
Returns whether JSONs in the payload are base-64 encoded.
|
TrackerConfiguration |
platform(DevicePlatform platform)
The
DevicePlatform the tracker is running on (default is "srv", ServerSideApp). |
public TrackerConfiguration(java.lang.String namespace, java.lang.String appId)
namespace
- identifier for the Tracker instanceappId
- application IDpublic java.lang.String getNamespace()
public java.lang.String getAppId()
public DevicePlatform getPlatform()
public boolean isBase64Encoded()
public TrackerConfiguration platform(DevicePlatform platform)
DevicePlatform
the tracker is running on (default is "srv", ServerSideApp).platform
- The device platform the tracker is running onpublic TrackerConfiguration base64Encoded(boolean base64Encoded)
base64Encoded
- JSONs should be encoded or not