Accela SDK for Android
V3.0
|
Classes | |
enum | HTTPMethod |
enum | RequestType |
Static Protected Attributes | |
static final String | HEADER_X_ACCELA_TRACEID = "x-accela-traceid" |
static final String | HEADER_X_ACCELA_RESP_MESSAGE = "x-accela-resp-message" |
Accela Amobile File: AMRequest.java
Accela, Inc. Copyright (C): 2013
Description: AccelaMobile Request object, used to process HTTP/HTTPS requests.
Notes:
Revision History@since 1.0
|
inline |
Constructor with the given parameters.
accelaMobile | The AccelaMobile instance which create this request. |
serviceURL | The service's full path(including server host). |
params | The collection of URL parameters which will be added to URL with & symbol. |
httpMethod | One of HTTP method such as GET, POST, PUT or DELETE. |
|
inline |
Cancel the current request.
|
inline |
Download a binary file as an asynchronous operation or synchronous operation. That depends on the value of isSynchronous boolean variable.
localFile | The local file path with which the downloaded file will be created. |
requestDelegate | The delegate for asynchronous request, or null for synchronous request. Note this parameter is used only for asynchronous request (this.isSynchronous = false). |
|
inline |
Synchronously send a request identified by the Accela Mobile Cloud API endpoint with the given data using an HTTP POST method.
paramData | The content sent with the corresponding request. |
|
inline |
Get the value of property accelaMobile.
@since 3.0
|
inline |
Get the value of property amDownloadDestinationPath.
|
inline |
Get the value of property amUploadDestinationPath.
|
inline |
Get the value of property asyncHttpClient.
@since 1.0
|
inline |
Get the value of property httpMethod.
@since 3.0
|
inline |
Get the value of property postParams.
|
inline |
Get the value of property requestType.
@since 3.0
|
inline |
Get the value of property requestWaitingView.
|
inline |
Get the value of property serviceURL.
@since 3.0
|
inline |
Get the value of property syncHttpClient.
|
inline |
Get the value of property tag.
@since 3.0
|
inline |
Get the value of property urlParams.
|
inline |
Cancel the current request.
|
inline |
Indicates whether the request is in progress.
|
inline |
Makes a request to the Accela Mobile Cloud API endpoint with the given data using an HTTP POST method as an asynchronous operation.
paramData | The content sent with the corresponding request. |
requestDelegate | The request's delegate. |
|
inline |
Makes an asynchronous request using an HTTP POST method to upload multiple attachments.
data | The content sent with the corresponding request. |
attachments | The attachments to be uploaded in the request. Values mapping: Key => File Path. |
requestDelegate | The request's delegate. |
|
inline |
Set the value of property accelaMobile. @param accelaMobile The new value to be assigned.
@since 3.0
|
inline |
Set HTTP / HTTPS headers for the current request.
httpHeaders | Pairs of header key and value. |
|
inline |
Set value for property isSynchronous.
isSynchronous | true or false |
|
inline |
Show a waiting indicator in the specified view.
Note: This method sets holder view for the current request and then show a progress dialog in it. 1.In asynchronous request, please call this method in the request delegate's onStart() method, then dismiss the progress dialog in the request delegate's onSuccess() method or onFailure() method. 2.In synchronous request, please call this method just before the code line which sends out the request, then dismiss the progress dialog after that code line.
ownerView | The view which presents the waiting view. |
labelText | The message which is displayed in the waiting view. |
|
inline |
Set message content in the waiting indicator view.
labelText | The message text to be assigned. |
|
inline |
Set the value of property requestType. @param requestType The new value to be assigned.
@since 3.0
|
inline |
Set the value of property tag. @param tag The new tag to be assigned.
@since 3.1
|
inline |
Uploads a binary file represented as an asynchronous operation or synchronous operation. That depends on the value of isSynchronous boolean variable.
attachmentInfo | The collection of file's information. Note there should be two keys named "fileName" and "localPath". |
requestDelegate | The delegate for asynchronous request, or null for synchronous request. Note this parameter is used only for asynchronous request (this.isSynchronous = false). |
|
inline |
Wait until the current request is finished.
|
staticprotected |
Response Message header name in HTTP/HTTPS response headers.
|
staticprotected |
Trace ID header name in HTTP/HTTPS response headers.