Accela SDK for Android
V3.0
|
Public Member Functions | |
SyncHttpClient () | |
void | setCookieStore (CookieStore cookieStore) |
void | setUserAgent (String userAgent) |
void | setSSLSocketFactory (SSLSocketFactory sslSocketFactory) |
void | addHeader (String header, String value) |
JSONObject | get (String url) |
JSONObject | post (String url, RequestParams params) |
JSONObject | post (String url, HttpEntity entity, String contentType) |
JSONObject | put (String url, RequestParams params) |
JSONObject | put (String url, HttpEntity entity, String contentType) |
JSONObject | delete (String url) |
String | assembleUrlWithParams (String url, RequestParams params) |
Map< String, String > | getHeader () |
Header[] | getHttpResponseHeader () |
void | clearHttpResponseHeader () |
String | getHttpResponse () |
void | clearHttpResponseBody () |
Boolean | isLoading () |
Accela Amobile File: SyncHttpClient.java
Accela, Inc. Copyright (C): 2012
Description: HTTP Client wrapper, used to process synchronous HTTP requests.
Notes:
Revision History@since 1.0
|
inline |
|
inline |
Sets headers that will be added to the current request.
header | The name of the header. |
value | The contents of the header. |
|
inline |
Append reqeust parameters to URL.
url | The URL to send the request to. |
params | Additional URL parameters which will be appened to the URL. |
|
inline |
Clear reponse data.
|
inline |
Clear header list.
|
inline |
Perform a HTTP DELETE request.
url | The URL to send the request to. |
|
inline |
Perform a HTTP GET request, without any parameters.
url | The URL to send the request to. |
|
inline |
Get client's header map.
|
inline |
Get response's data string.
|
inline |
Get response's header list.
|
inline |
Get the loading status of current request
|
inline |
Perform a HTTP POST request, without the given post parameters.
url | The URL to send the request to. |
params | Additional POST parameters to send with the request. |
|
inline |
Perform a HTTP POST request with the given http entity.
url | The URL to send the request to. |
entity | A raw HttpEntity to send with the request, for example, use this to send string/json/xml payloads to a server by passing a org.apache.http.entity.StringEntity. |
contentType | The content type of the payload you are sending, for example application/json if sending a json payload. |
|
inline |
Perform a HTTP PUT request with the given put parameters.
url | The URL to send the request to. |
params | Additional PUT parameters or files to send with the request. |
|
inline |
Perform a HTTP PUT request with the given http entity.
url | The URL to send the request to. |
entity | A raw HttpEntity to send with the request, for example, use this to send string/json/xml payloads to a server by passing a org.apache.http.entity.StringEntity. |
contentType | The content type of the payload you are sending. |
|
inline |
Sets an optional CookieStore to use when making requests
cookieStore | The CookieStore implementation to use, usually an instance of PersistentCookieStore |
|
inline |
Sets the SSLSocketFactory to user when making requests. By default, a new, default SSLSocketFactory is used.
sslSocketFactory | The socket factory to use for https requests. |
|
inline |
Sets the User-Agent header to be sent with the current request.
userAgent | The string to use in the User-Agent header. |