| 程序包 | 说明 |
|---|---|
| com.ptteng.rent.user.utils | |
| com.ptteng.rent.user.utils.show.api.util |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ShowApiRequest
基于REST的客户端。
|
| 限定符和类型 | 方法和说明 |
|---|---|
NormalRequest |
NormalRequest.addFilePara(String key,
File item)
添加post体的上传文件参数
|
NormalRequest |
NormalRequest.addHeadPara(String key,
String value)
添加head头的字符串参数
|
NormalRequest |
NormalRequest.addTextPara(String key,
String value)
添加post体的字符串参数
|
NormalRequest |
NormalRequest.setAllowRedirect(boolean allowRedirect) |
NormalRequest |
NormalRequest.setBody(byte[] body) |
NormalRequest |
NormalRequest.setBodyString(String bodyString) |
NormalRequest |
NormalRequest.setCharset_out(String charset_out) |
NormalRequest |
NormalRequest.setCharset(String charset) |
NormalRequest |
NormalRequest.setConnectTimeout(int connectTimeout) |
NormalRequest |
NormalRequest.setPrintException(boolean printException) |
NormalRequest |
NormalRequest.setProxy(String proxyIp,
int proxyPort) |
NormalRequest |
NormalRequest.setReadTimeout(int readTimeout) |
NormalRequest |
NormalRequest.setUrl(String url)
设置客户端与showapi网关的最大长连接数量。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ResData |
WebUtils._doGetAsByte(NormalRequest req) |
static ResData |
WebUtils._doPostAsByte(NormalRequest req) |
static String |
WebUtils.doGet(NormalRequest req)
执行HTTP GET请求。
|
static byte[] |
WebUtils.doGetAsByte(NormalRequest req)
执行普通非文件的HTTP POST请求。
|
static String |
WebUtils.doPost(NormalRequest req)
执行带文件上传的HTTP POST请求。
|
static byte[] |
WebUtils.doPostAsByte(NormalRequest req) |
Copyright © 2018. All rights reserved.