|
Accela SDK for Android
V3.0
|
Public Member Functions | |
| void | amRequestStarted (AMRequest request) |
| void | amRequestDidReceiveResponse (AMRequest request) |
| void | amRequestDidTimeout (AMRequest request) |
| void | amRequestDidFailWithError (AMRequest request, AMError error) |
| void | amRequestDidLoad (AMRequest request, JSONObject result) |
| void | amRequestReceivedBytes (AMRequest request, long bytes, long total) |
| void | amRequestSendBytes (AMRequest request, long bytes) |
Public Member Functions inherited from com.accela.mobile.http.JsonHttpResponseHandler | |
| abstract void | onSuccess (JSONObject response) |
| abstract void | onFailure (Throwable error) |
| void | onSuccess (JSONArray response) |
Public Member Functions inherited from com.accela.mobile.http.AsyncHttpResponseHandler | |
| AsyncHttpResponseHandler () | |
| abstract void | onStart () |
| void | onFinish () |
| void | onSuccess (String content) |
| void | onSuccess (byte[] content) |
| void | onFailure (Throwable error) |
| void | onTimeout () |
Protected Attributes | |
| AMError | amError |
| String | errorCode |
| String | traceId |
| String | errorMessage |
Additional Inherited Members | |
Public Attributes inherited from com.accela.mobile.http.JsonHttpResponseHandler | |
| JSONObject | rawResponseJson |
Protected Member Functions inherited from com.accela.mobile.http.JsonHttpResponseHandler | |
| void | handleSuccessMessage (String responseBody) |
| JSONObject | parseResponse (String responseBody) throws JSONException |
Accela Amobile File: AMRequestDelegate.java
Accela, Inc. Copyright (C): 2013
Description: Request delegate, defines the methods which will be called during the lifecycle of a request.
Notes:
Revision History@since 1.0
|
inline |
Called when a request returns and its response has been parsed into an object. The resulting object format may be a dictionary or an array. Note that the result is null if the amDownloadDestinationPath property bas been set to a valid value.
| request | The AMRequest instance which is processing the current request. |
| result | The JSON object which contains the result data. |
|
inline |
Called when the server responds and begins to send back data.
| request | The AMRequest instance which is processing the current request. |
|
inline |
|
inline |
Called when the request receives some data.
Note that the total is 0 if there is no Content-Length variable in the HTTP headers.
| request | The AMRequest instance which is processing the current request. |
| bytes | The bytes of data which has been received. |
| total | The total bytes of data which will be received. |
|
inline |
Called when the request sends some data.
| request | The AMRequest instance which is processing the current request. |
| bytes | The bytes of data which has been sent. |
|
inline |
Called just before the request is sent to the server.
| request | The AMRequest instance which is processing the current request. |
|
protected |
The AMError instance binded to the current delegate.
|
protected |
The error code got from the JSON returned by API.
|
protected |
The message got from the JSON returned by API.
|
protected |
The trace ID got from the JSON returned by API.