所有方法 静态方法 实例方法 具体方法
| 限定符和类型 |
方法和说明 |
NormalRequest |
addFilePara(String key,
File item)
添加post体的上传文件参数
|
NormalRequest |
addHeadPara(String key,
String value)
添加head头的字符串参数
|
NormalRequest |
addTextPara(String key,
String value)
添加post体的字符串参数
|
String |
get() |
byte[] |
getAsByte() |
byte[] |
getBody() |
String |
getBodyString() |
String |
getCharset_out() |
String |
getCharset() |
int |
getConnectTimeout() |
Map<String,String> |
getHeadMap() |
Proxy |
getProxy() |
int |
getReadTimeout() |
Map<String,List<String>> |
getRes_headMap() |
Map<String,String> |
getTextMap() |
Map<String,File> |
getUploadMap() |
String |
getUrl() |
boolean |
isAllowRedirect() |
boolean |
isPrintException() |
static void |
main(String[] adfas) |
String |
post() |
byte[] |
postAsByte() |
NormalRequest |
setAllowRedirect(boolean allowRedirect) |
NormalRequest |
setBody(byte[] body) |
NormalRequest |
setBodyString(String bodyString) |
NormalRequest |
setCharset_out(String charset_out) |
NormalRequest |
setCharset(String charset) |
NormalRequest |
setConnectTimeout(int connectTimeout) |
void |
setHeadMap(Map<String,String> headMap) |
NormalRequest |
setPrintException(boolean printException) |
NormalRequest |
setProxy(String proxyIp,
int proxyPort) |
NormalRequest |
setReadTimeout(int readTimeout) |
void |
setRes_headtMap(Map<String,List<String>> res_headMap) |
void |
setTextMap(Map<String,String> textMap) |
void |
setUploadMap(Map<String,File> uploadMap) |
NormalRequest |
setUrl(String url)
设置客户端与showapi网关的最大长连接数量。
|