Class AbstractService
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
- Direct Known Subclasses:
ServiceAlmanach,ServiceAuthentication,ServiceBlog,ServiceClassifieds,ServiceComment,ServiceConnection,ServiceContact,ServiceDocuments,ServiceFaq,ServiceFormsOnline,ServiceHyperLink,ServiceMedia,ServiceMyLinks,ServiceNavigation,ServiceNews,ServiceNotifications,ServiceOrgChartGroup,ServicePassword,ServiceReminder,ServiceResourcesManager,ServiceRestDocuments,ServiceRSE,ServiceSearch,ServiceSurvey,ServiceTask,ServiceTermsOfService,ServiceTickets,ServiceUserCalendar,ServiceWorkflow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Booleanprotected <T> voidescapeJson(String s) protected <T> voidget(String url, Function<Object, T> mapper, RestCallback<T> callback) protected <T> voidgetText(String url, Function<Object, T> mapper, RestCallback<T> callback) voidinitContext(String login, String password, String domainId) protected <T> List<T>protected <T> voidprotected <T> voidprotected <T> voidrequest(String method, String url, Object body, Function<Object, T> mapper, RestCallback<T> callback) protected <T> voidrequest(String method, String url, Object body, Function<Object, T> mapper, RestCallback<T> callback, String contentType) protected <T> voidrequestJson(String method, String url, Object body, Function<Object, T> mapper, RestCallback<T> callback) protected voidrequestText(String method, String url, Object body, RestCallback<String> callback) protected StringtoJsonArray(List<String> values)
-
Constructor Details
-
AbstractService
public AbstractService()
-
-
Method Details
-
encode
-
escapeJson
-
request
-
requestJson
-
requestText
-
request
-
get
-
getText
-
post
protected <T> void post(String url, String body, Function<Object, T> mapper, RestCallback<T> callback) -
put
protected <T> void put(String url, String body, Function<Object, T> mapper, RestCallback<T> callback) -
delete
protected <T> void delete(String url, Object body, Function<Object, T> mapper, RestCallback<T> callback) -
toJsonArray
-
mapArray
-
asBoolean
-
initContext
-