public abstract class RuntimeEnvironment
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeEnvironment.Type |
Constructor and Description |
---|
RuntimeEnvironment(RuntimeEnvironment.Type type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientIpAddress()
Get the IP address of the original request.
|
java.util.List<DeviceIdentity> |
getIdentities() |
java.lang.String |
getSdkVersion() |
RuntimeEnvironment.Type |
getType() |
java.lang.String |
getUserAgent() |
boolean |
isDebug() |
void |
setClientIpAddress(java.lang.String clientIpAddress) |
void |
setIdentities(java.util.List<DeviceIdentity> identities)
Set the device identities
|
void |
setSdkVersion(java.lang.String sdkVersion)
Get the SDK version associated with this request.
|
void |
setUserAgent(java.lang.String userAgent)
Set the user agent HTTP header that is sent by this runtime environment
|
public RuntimeEnvironment(RuntimeEnvironment.Type type)
public RuntimeEnvironment.Type getType()
public boolean isDebug()
public java.lang.String getClientIpAddress()
public void setClientIpAddress(java.lang.String clientIpAddress)
public java.lang.String getSdkVersion()
public void setSdkVersion(java.lang.String sdkVersion)
sdkVersion
- SDK version, ex: "6.12.1", may be nullpublic java.lang.String getUserAgent()
public void setUserAgent(java.lang.String userAgent)
userAgent
- valuepublic java.util.List<DeviceIdentity> getIdentities()
public void setIdentities(java.util.List<DeviceIdentity> identities)
identities
-