public class UrlEncodedFormRequest extends BaseEntityRequest
| 构造器和说明 |
|---|
UrlEncodedFormRequest(String url)
构造函数
|
UrlEncodedFormRequest(String url,
RequestMethod method)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addParam(String name,
Object value)
增加参数
|
void |
addParams(Map<String,Object> params)
批量增加参数
|
org.apache.http.HttpEntity |
getEntity()
请求实体
|
Map<String,Object> |
getParams()
获取参数map
|
void |
removeParam(String name)
移除参数
|
getSupportedMethodsaddHeader, addHeaders, addUrlParam, addUrlParams, getAllHeaders, getHeader, getHttpRequest, getMethod, getRequestCharset, getResponseDefaultCharset, getUrl, getUrlParams, isSecured, removeHeader, removeUrlParam, setMethod, setRequestCharset, setResponseDefaultCharset, setSecuredpublic UrlEncodedFormRequest(String url, RequestMethod method) throws MethodNotSupportException
url - 请求urlmethod - 方法名称MethodNotSupportException - 方法不支持public UrlEncodedFormRequest(String url) throws MethodNotSupportException
url - 请求urlMethodNotSupportException - 方法不支持public void removeParam(String name)
name - 参数名称public org.apache.http.HttpEntity getEntity()
BaseEntityRequestgetEntity 在类中 BaseEntityRequestCopyright © 2020 IBIT程序猿. All rights reserved.