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