类 NameValueRequestBody
java.lang.Object
com.dtflys.forest.http.ForestRequestBody
com.dtflys.forest.http.body.NameValueRequestBody
- 所有已实现的接口:
SupportFormUrlEncoded
键值对类型请求体
该请求体对象会包装键值对的名称和值, 会根据请求的ContentType转换成表单项或JSON中的一个字段
- 从以下版本开始:
- 2020-09-22 17:30
- 作者:
- gongjun[jun.gong@thebeastshop.com]
-
字段概要
从类继承的字段 com.dtflys.forest.http.ForestRequestBody
body -
构造器概要
构造器构造器说明NameValueRequestBody(String name, Object value) NameValueRequestBody(String name, String contentType, Object value) -
方法概要
修饰符和类型方法说明clone()byte[]getName()getNameValueList(ForestRequest request) 获取请求键值对getValue()voidsetContentType(String contentType) voidvoidtoString()从类继承的方法 com.dtflys.forest.http.ForestRequestBody
getBody, getDefaultValue, setDefaultValue
-
构造器详细资料
-
NameValueRequestBody
-
NameValueRequestBody
-
-
方法详细资料
-
getName
-
setName
-
getOriginalValue
-
getValue
-
setValue
-
getContentType
-
setContentType
-
toFormString
-
toString
-
getByteArray
public byte[] getByteArray()- 指定者:
getByteArray在类中ForestRequestBody
-
getDefaultBodyType
- 指定者:
getDefaultBodyType在类中ForestRequestBody
-
getNameValueList
从接口复制的说明:SupportFormUrlEncoded获取请求键值对- 指定者:
getNameValueList在接口中SupportFormUrlEncoded- 参数:
request- Forest请求对象- 返回:
- 请求键值对
-
clone
- 指定者:
clone在类中ForestRequestBody
-