Class and Description |
---|
com.worklight.wlclient.api.WLProcedureInvocationData
Use WLResourceRequest API instead.
This class contains all necessary data to call a procedure, including:
|
com.worklight.wlclient.api.WLProcedureInvocationResponse
As of MobileFirst v8.0, replaced by
WLProcedureInvocationResult . |
com.worklight.wlclient.api.WLProcedureInvocationResult
Use WLResourceRequest API instead.
This class extends WLResponse . This class contains statuses and data that the adapter procedure retrieves. |
Method and Description |
---|
com.worklight.wlclient.api.WLClient.connect(WLResponseListener)
Use WLAuthorizationManager.obtainAccessToken("", listener)
This method sends an initialization request to the MobileFirst Platform Server, establishes a connection with the server, validates the application version and provides and Access Token.
|
com.worklight.wlclient.api.WLClient.connect(WLResponseListener, WLRequestOptions)
Use WLAuthorizationManager.obtainAccessToken("", listener)
This method sends an initialization request to the MobileFirst Platform Server, establishes a connection with the server, validates the application version and provides and Access Token.
|
com.worklight.wlclient.api.WLFailResponse.getErrorCode()
As of MobileFirst v8.0, replaced by getErrorStatusCode method.
The WLErrorCode section contains a description of the possible errors. |
com.worklight.wlclient.api.WLProcedureInvocationFailResponse.getJSONResult() |
com.worklight.wlclient.api.WLProcedureInvocationResponse.getJSONResult() |
com.worklight.wlclient.api.WLClient.invokeProcedure(WLProcedureInvocationData, WLResponseListener)
As of MobileFirst v8.0, replaced by
WLResourceRequest . Invokes an adapter procedure (similar to JavaScript WL.Client.invokeProcedure ).
The response is returned to the provided listener callback functions. Upon a successful response from the server, the listener's onSuccessis called. onFailureis called in case of an error, including a login form response from the server, which is also considered an error. Example The following code invokes a procedure "getStoriesFiltered" in the adapter "RSSReader" using a parameter "Africa": String adapterName = "RSSReader"; String procedureName = "getStoriesFiltered"; WLProcedureInvocationData invocationData = new WLProcedureInvocationData(adapterName, procedureName); Object[] parameters = new Object[] {"africa"}; invocationData.setParameters(parameters); WLClient client = WLClient.getInstance(); client.invokeProcedure(invocationData, new MyInvokeListener(), options); |
com.worklight.wlclient.api.WLClient.invokeProcedure(WLProcedureInvocationData, WLResponseListener, WLRequestOptions)
As of MobileFirst v8.0, replaced by
WLResourceRequest This method sends an asynchronous call to an adapter procedure. The response is returned to the callback functions of the specified WLResponseListener .
If the invocation succeeds, onSuccess(WLResponse) is called. If it fails, onFailure(WLFailResponse) is called. |
com.worklight.common.Logger.sendIfUnCaughtExceptionDetected(Context)
since version 6.2; use
Logger.send() with
Logger.isUnCaughtExceptionDetected() conditional instead.
Send the log file when there is an uncaught exception detected, and was recorded to the log buffer due to capture being turned on at the time of the uncaught exception. This is a convenience method so that callers may place a single line of code at the point in their application where they want to call it. |
com.worklight.common.WLAnalytics.setContext(Context)
use WLAnalytics.init() instead
Context object must be set in order to use the WLAnalytics API. This is called automatically by WL.init.
|
Constructor and Description |
---|
com.worklight.wlclient.api.WLProcedureInvocationResponse(WLResponse) |