public class ResponseAttributesImpl extends java.lang.Object implements ResponseAttributes
ResponseAttributes providing all the attributes received from the server.| Modifier and Type | Class and Description |
|---|---|
static class |
ResponseAttributesImpl.Builder |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationId()
Returns the ID of the application to which this configuration applies.
|
int |
getMaxBeaconSizeInBytes()
Returns the maximum POST body size when sending beacons.
|
int |
getMaxEventsPerSession()
Returns the maximum number of top level actions after which a session will be split.
|
int |
getMaxSessionDurationInMilliseconds()
Returns the maximum duration of a session in milliseconds after which a session will be split.
|
int |
getMultiplicity()
Returns the multiplicity
|
int |
getSendIntervalInMilliseconds()
Returns the send interval in milliseconds.
|
int |
getServerId()
Returns the ID of the server to where all data should be sent.
|
int |
getSessionTimeoutInMilliseconds()
Returns the idle timeout in milliseconds after which a session will be split.
|
java.lang.String |
getStatus()
Returns the status of the new session configuration request.
|
long |
getTimestampInMilliseconds()
Returns the timestamp of these attributes which were returned from the server.
|
int |
getVisitStoreVersion()
Returns the version of the visit store to be used.
|
boolean |
isAttributeSet(ResponseAttribute attribute)
Checks whether the given attribute was set / sent from the server with this server response.
|
boolean |
isCapture()
Indicator whether capturing data is generally allowed or not.
|
boolean |
isCaptureCrashes()
Indicator whether crashes should be captured or not.
|
boolean |
isCaptureErrors()
Indicator whether errors should be captured or not.
|
ResponseAttributes |
merge(ResponseAttributes responseAttributes)
Creates a new response attributes object by merging the given response into this one.
|
static ResponseAttributesImpl.Builder |
withJsonDefaults()
Creates a new builder initialized with the default values for
JSON parsing. |
static ResponseAttributesImpl.Builder |
withKeyValueDefaults()
Creates a new builder initialized with the defaults value for
key-value parsing. |
static ResponseAttributesImpl.Builder |
withUndefinedDefaults()
Creates a new builder instance with undefined default values.
|
public int getMaxBeaconSizeInBytes()
ResponseAttributesgetMaxBeaconSizeInBytes in interface ResponseAttributespublic int getMaxSessionDurationInMilliseconds()
ResponseAttributesgetMaxSessionDurationInMilliseconds in interface ResponseAttributespublic int getMaxEventsPerSession()
ResponseAttributesgetMaxEventsPerSession in interface ResponseAttributespublic int getSessionTimeoutInMilliseconds()
ResponseAttributesgetSessionTimeoutInMilliseconds in interface ResponseAttributespublic int getSendIntervalInMilliseconds()
ResponseAttributesgetSendIntervalInMilliseconds in interface ResponseAttributespublic int getVisitStoreVersion()
ResponseAttributesgetVisitStoreVersion in interface ResponseAttributespublic boolean isCapture()
ResponseAttributesisCapture in interface ResponseAttributespublic boolean isCaptureCrashes()
ResponseAttributesisCaptureCrashes in interface ResponseAttributespublic boolean isCaptureErrors()
ResponseAttributesisCaptureErrors in interface ResponseAttributespublic java.lang.String getApplicationId()
ResponseAttributesThis is sent by the JSON configuration only, as sanity check to fix a weird Jetty bug.
getApplicationId in interface ResponseAttributespublic int getMultiplicity()
ResponseAttributesgetMultiplicity in interface ResponseAttributespublic int getServerId()
ResponseAttributesgetServerId in interface ResponseAttributespublic java.lang.String getStatus()
ResponseAttributesgetStatus in interface ResponseAttributespublic long getTimestampInMilliseconds()
ResponseAttributesThe timestamp is the duration from January, 1st, 1970
getTimestampInMilliseconds in interface ResponseAttributespublic boolean isAttributeSet(ResponseAttribute attribute)
ResponseAttributesisAttributeSet in interface ResponseAttributesattribute - the attribute to be checked if it was sent by the server.true if the given attribute was sent from the server with this attributes, false otherwise.public ResponseAttributes merge(ResponseAttributes responseAttributes)
ResponseAttributesis set.merge in interface ResponseAttributesresponseAttributes - the response attributes which will be merged together with this one into a new response
attributes object.public static ResponseAttributesImpl.Builder withKeyValueDefaults()
key-value parsing.public static ResponseAttributesImpl.Builder withJsonDefaults()
JSON parsing.public static ResponseAttributesImpl.Builder withUndefinedDefaults()