Skip to content

Commit 3569f8b

Browse files
committed
Add javadocs for missing new API
1 parent e3e2687 commit 3569f8b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

client/src/main/java/com/jaspersoft/android/sdk/client/JsRestClient.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)