File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
client/src/main/java/com/jaspersoft/android/sdk/client Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,13 @@ public JsServerProfile getServerProfile() {
181
181
return jsServerProfile ;
182
182
}
183
183
184
+ /**
185
+ * Alternative way to change server profile.
186
+ * This method mutates request factory.
187
+ * This method doesn't mutates interceptors collection.
188
+ *
189
+ * @param serverProfile store of user auth credentials
190
+ */
184
191
public void updateServerProfile (final JsServerProfile serverProfile ) {
185
192
this .serverInfo = null ;
186
193
this .jsServerProfile = serverProfile ;
@@ -193,6 +200,13 @@ public void updateServerProfile(final JsServerProfile serverProfile) {
193
200
}
194
201
}
195
202
203
+ /**
204
+ * Legacy way to change server profile.
205
+ * This method mutates request factory.
206
+ * This method mutates interceptors collection.
207
+ *
208
+ * @param serverProfile store of user auth credentials
209
+ */
196
210
@ Deprecated
197
211
public void setServerProfile (final JsServerProfile serverProfile ) {
198
212
this .serverInfo = null ;
@@ -213,6 +227,11 @@ public void setServerProfile(final JsServerProfile serverProfile) {
213
227
}
214
228
}
215
229
230
+ /**
231
+ * Allows to mutate list of request request interceptors.
232
+ *
233
+ * @param interceptors list of new request interceptors.
234
+ */
216
235
public void setRequestInterceptors (List <ClientHttpRequestInterceptor > interceptors ) {
217
236
restTemplate .setInterceptors (interceptors );
218
237
}
You can’t perform that action at this time.
0 commit comments