@@ -34,6 +34,7 @@ public class ClickstreamConfiguration {
3434 private boolean isTrackAppLifecycleEvents ;
3535 private boolean isTrackAppExceptionEvents ;
3636 private boolean isLogEvents ;
37+ private String authCookie ;
3738
3839 /**
3940 * Create an {@link ClickstreamConfiguration} object with the specified parameters.
@@ -90,15 +91,6 @@ public String getEndpoint() {
9091 return this .endpoint ;
9192 }
9293
93- /**
94- * For get the Clickstream Okhttp3 dns.
95- *
96- * @return the dns.
97- */
98- public Dns getDns () {
99- return this .dns ;
100- }
101-
10294 /**
10395 * The endpoint for Clickstream.
10496 *
@@ -110,6 +102,15 @@ public ClickstreamConfiguration withEndpoint(final String endpoint) {
110102 return this ;
111103 }
112104
105+ /**
106+ * For get the Clickstream Okhttp3 dns.
107+ *
108+ * @return the dns.
109+ */
110+ public Dns getDns () {
111+ return this .dns ;
112+ }
113+
113114 /**
114115 * The Custom Okhttp3 dns for Clickstream.
115116 *
@@ -130,15 +131,6 @@ public long getSendEventsInterval() {
130131 return this .sendEventsInterval ;
131132 }
132133
133- /**
134- * The time out of entire http call.
135- *
136- * @return callTimeOut.
137- */
138- public Long getCallTimeOut () {
139- return this .callTimeOut ;
140- }
141-
142134 /**
143135 * The interval of events sent at once.
144136 *
@@ -150,6 +142,15 @@ public ClickstreamConfiguration withSendEventsInterval(final long sendEventsInte
150142 return this ;
151143 }
152144
145+ /**
146+ * The time out of entire http call.
147+ *
148+ * @return callTimeOut.
149+ */
150+ public Long getCallTimeOut () {
151+ return this .callTimeOut ;
152+ }
153+
153154 /**
154155 * The http call time out.
155156 *
@@ -190,6 +191,17 @@ public boolean isTrackAppLifecycleEvents() {
190191 return this .isTrackAppLifecycleEvents ;
191192 }
192193
194+ /**
195+ * Is track app lifecycle events.
196+ *
197+ * @param isTrackAppLifecycleEvents Is track app lifecycle events.
198+ * @return the current ClickstreamConfiguration instance.
199+ */
200+ public ClickstreamConfiguration withTrackAppLifecycleEvents (final boolean isTrackAppLifecycleEvents ) {
201+ this .isTrackAppLifecycleEvents = isTrackAppLifecycleEvents ;
202+ return this ;
203+ }
204+
193205 /**
194206 * Is track app exception events.
195207 *
@@ -199,6 +211,17 @@ public boolean isTrackAppExceptionEvents() {
199211 return this .isTrackAppExceptionEvents ;
200212 }
201213
214+ /**
215+ * Is track app exception events.
216+ *
217+ * @param isTrackAppExceptionEvents Is track app exception events.
218+ * @return the current ClickstreamConfiguration instance.
219+ */
220+ public ClickstreamConfiguration withTrackAppExceptionEvents (final boolean isTrackAppExceptionEvents ) {
221+ this .isTrackAppExceptionEvents = isTrackAppExceptionEvents ;
222+ return this ;
223+ }
224+
202225 /**
203226 * Is log events.
204227 *
@@ -209,35 +232,33 @@ public boolean isLogEvents() {
209232 }
210233
211234 /**
212- * Is track app lifecycle events .
235+ * Is log events json when record event, set true for debug mode .
213236 *
214- * @param isTrackAppLifecycleEvents Is track app lifecycle events.
237+ * @param isLogEvents Is log events json .
215238 * @return the current ClickstreamConfiguration instance.
216239 */
217- public ClickstreamConfiguration withTrackAppLifecycleEvents (final boolean isTrackAppLifecycleEvents ) {
218- this .isTrackAppLifecycleEvents = isTrackAppLifecycleEvents ;
240+ public ClickstreamConfiguration withLogEvents (final boolean isLogEvents ) {
241+ this .isLogEvents = isLogEvents ;
219242 return this ;
220243 }
221244
222245 /**
223- * Is track app exception events .
246+ * Get The Clickstream authCookie .
224247 *
225- * @param isTrackAppExceptionEvents Is track app exception events.
226- * @return the current ClickstreamConfiguration instance.
248+ * @return the authCookie.
227249 */
228- public ClickstreamConfiguration withTrackAppExceptionEvents (final boolean isTrackAppExceptionEvents ) {
229- this .isTrackAppExceptionEvents = isTrackAppExceptionEvents ;
230- return this ;
250+ public String getAuthCookie () {
251+ return this .authCookie ;
231252 }
232253
233254 /**
234- * Is log events json when record event, set true for debug mode .
255+ * Set the auth cookie for Clickstream .
235256 *
236- * @param isLogEvents Is log events json .
257+ * @param authCookie The authCookie .
237258 * @return the current ClickstreamConfiguration instance.
238259 */
239- public ClickstreamConfiguration withLogEvents (final boolean isLogEvents ) {
240- this .isLogEvents = isLogEvents ;
260+ public ClickstreamConfiguration withAuthCookie (final String authCookie ) {
261+ this .authCookie = authCookie ;
241262 return this ;
242263 }
243264}
0 commit comments