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() {
181181 return jsServerProfile ;
182182 }
183183
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+ */
184191 public void updateServerProfile (final JsServerProfile serverProfile ) {
185192 this .serverInfo = null ;
186193 this .jsServerProfile = serverProfile ;
@@ -193,6 +200,13 @@ public void updateServerProfile(final JsServerProfile serverProfile) {
193200 }
194201 }
195202
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+ */
196210 @ Deprecated
197211 public void setServerProfile (final JsServerProfile serverProfile ) {
198212 this .serverInfo = null ;
@@ -213,6 +227,11 @@ public void setServerProfile(final JsServerProfile serverProfile) {
213227 }
214228 }
215229
230+ /**
231+ * Allows to mutate list of request request interceptors.
232+ *
233+ * @param interceptors list of new request interceptors.
234+ */
216235 public void setRequestInterceptors (List <ClientHttpRequestInterceptor > interceptors ) {
217236 restTemplate .setInterceptors (interceptors );
218237 }
You can’t perform that action at this time.
0 commit comments