类 | |
| class | FileWrapper |
Public 成员函数 | |
| AbRequestParams () | |
| AbRequestParams (Map< String, String > source) | |
| AbRequestParams (String key, String value) | |
| void | put (String key, String value) |
| void | put (String key, File file, String contentType) |
| void | put (String key, File file) |
| void | remove (String key) |
| String | toString () |
| List< BasicNameValuePair > | getParamsList () |
| String | getParamString () |
| HttpEntity | getEntity (AbHttpResponseListener responseListener) throws IOException |
| HttpEntity | createFormEntity () |
| ConcurrentHashMap< String, String > | getUrlParams () |
| void | setUrlParams (ConcurrentHashMap< String, String > urlParams) |
Protected 属性 | |
| ConcurrentHashMap< String, String > | urlParams |
| ConcurrentHashMap< String, FileWrapper > | fileParams |
Private 成员函数 | |
| void | init () |
| HttpEntity | createMultipartEntity (AbHttpResponseListener responseListener) throws IOException |
静态 Private 属性 | |
| static final String | APPLICATION_OCTET_STREAM = "application/octet-stream" |
© 2012 amsoft.cn 名称:AbRequestParams.java 描述:Http请求参数
|
inline |
构造一个空的请求参数.
|
inline |
用一个map构造请求参数.
| source | the source |
|
inline |
用一个key和value构造请求参数.
| key | the key |
| value | the value |
|
inline |
创建HttpEntity.
|
inlineprivate |
描述:创建文件域HttpEntity.
| responseListener | the response listener |
| IOException | Signals that an I/O exception has occurred. |
|
inline |
获取HttpEntity.
| responseListener | the response listener |
| IOException | Signals that an I/O exception has occurred. |
|
inline |
获取参数列表.
|
inline |
获取参数字符串.
|
inline |
获取url参数.
|
inlineprivate |
初始化.
|
inline |
增加一对请求参数.
| key | the key |
| value | the value |
|
inline |
增加一个文件域.
| key | the key |
| file | the file |
| contentType | the content type of the file, eg. application/json |
|
inline |
增加一个文件域.
| key | the key |
| file | the file |
|
inline |
删除一个请求参数.
| key | the key |
|
inline |
设置url参数.
| urlParams | the url params |
|
inline |
描述:转换为参数字符串.
|
staticprivate |
流常量.
|
protected |
文件参数.
|
protected |
url参数.
1.8.8