类 ForestBody
java.lang.Object
com.dtflys.forest.http.ForestBody
- 所有已实现的接口:
Iterable<ForestRequestBody>,Collection<ForestRequestBody>,List<ForestRequestBody>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidadd(int index, ForestRequestBody element) booleanadd(ForestRequestBody forestRequestBody) booleanaddAll(int index, Collection<? extends ForestRequestBody> c) booleanaddAll(Collection<? extends ForestRequestBody> c) voidclear()clone()clone(ForestRequest request) booleanbooleancontainsAll(Collection<?> c) booleancontainsKey(Object key) booleancontainsValue(Object value) byte[]encode()byte[]encode(ConvertOptions options) byte[]encode(ForestEncoder encoder, Charset charset) byte[]encode(ForestEncoder encoder, Charset charset, ConvertOptions options) byte[]encode(ForestDataType type) byte[]encode(ForestDataType type, ConvertOptions options) byte[]encode(ForestDataType type, Charset charset) byte[]encode(ForestDataType type, Charset charset, ConvertOptions options) byte[]byte[]encode(Charset charset, ConvertOptions options) encodeToString(ConvertOptions options) encodeToString(ForestEncoder encoder, Charset charset) encodeToString(ForestEncoder encoder, Charset charset, ConvertOptions options) encodeToString(ForestDataType type) encodeToString(ForestDataType type, ConvertOptions options) encodeToString(ForestDataType type, Charset charset) encodeToString(ForestDataType type, Charset charset, ConvertOptions options) encodeToString(Charset charset) encodeToString(Charset charset, ConvertOptions options) get(int index) <T extends ForestRequestBody>
List<T>getNameValueBodies(String name) 根据名称获取键值对类型请求体项列表getNameValueBody(String name) 根据名称获取键值对类型请求体项intbooleanisEmpty()iterator()intlistIterator(int index) 获取请求体中的键值对获取请求体中的键值对remove(int index) <T extends ForestRequestBody>
booleanbooleanbooleanremoveAll(Collection<?> c) voidreplaceNameValue(NameValueRequestBody nameValueRequestBody) booleanretainAll(Collection<?> c) set(int index, ForestRequestBody element) voidsetBodyType(ForestDataType bodyType) voidsetEncoder(ForestEncoder encoder) setNameValue(String key, Object value) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) 从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray从接口继承的方法 java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
构造器详细资料
-
ForestBody
-
-
方法详细资料
-
getRequest
-
getEncoder
-
setEncoder
-
getNameValueBody
根据名称获取键值对类型请求体项- 参数:
name- 请求体项的名称- 返回:
- 键值对类型请求体项,
NameValueRequestBody对象实例
-
getNameValueBodies
根据名称获取键值对类型请求体项列表- 参数:
name- 请求体项的名称- 返回:
- 键值对类型请求体项列表,即
NameValueRequestBody对象实例列表
-
nameValuesMap
获取请求体中的键值对仅包含
NameValueRequestBody类型请求体项数据- 返回:
- 键值对类型请求体项组成的
Map
-
nameValuesMapWithObject
获取请求体中的键值对包含
NameValueRequestBody类型请求体项、以及ObjectRequestBody类请求体项拆解出来的键值对数据- 返回:
- 请求体中的键值对集合 -
Map对象
-
getItems
-
getStringItems
-
getNameValueItems
-
getObjectItems
-
getByteArrayItems
-
getInputStreamItems
-
getBinaryItems
-
getFileItems
-
getMultipartItems
-
getDefaultBodyType
-
getBodyType
-
setBodyType
-
size
public int size()- 指定者:
size在接口中Collection<ForestRequestBody>- 指定者:
size在接口中List<ForestRequestBody>
-
isEmpty
public boolean isEmpty()- 指定者:
isEmpty在接口中Collection<ForestRequestBody>- 指定者:
isEmpty在接口中List<ForestRequestBody>
-
containsKey
-
containsValue
-
setNameValue
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
-
encode
public byte[] encode() -
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
encodeToString
-
contains
- 指定者:
contains在接口中Collection<ForestRequestBody>- 指定者:
contains在接口中List<ForestRequestBody>
-
iterator
- 指定者:
iterator在接口中Collection<ForestRequestBody>- 指定者:
iterator在接口中Iterable<ForestRequestBody>- 指定者:
iterator在接口中List<ForestRequestBody>
-
toArray
- 指定者:
toArray在接口中Collection<ForestRequestBody>- 指定者:
toArray在接口中List<ForestRequestBody>
-
toArray
public <T> T[] toArray(T[] a) - 指定者:
toArray在接口中Collection<ForestRequestBody>- 指定者:
toArray在接口中List<ForestRequestBody>
-
add
- 指定者:
add在接口中Collection<ForestRequestBody>- 指定者:
add在接口中List<ForestRequestBody>
-
replaceNameValue
-
remove
- 指定者:
remove在接口中Collection<ForestRequestBody>- 指定者:
remove在接口中List<ForestRequestBody>
-
remove
-
containsAll
- 指定者:
containsAll在接口中Collection<ForestRequestBody>- 指定者:
containsAll在接口中List<ForestRequestBody>
-
addAll
- 指定者:
addAll在接口中Collection<ForestRequestBody>- 指定者:
addAll在接口中List<ForestRequestBody>
-
addAll
- 指定者:
addAll在接口中List<ForestRequestBody>
-
removeAll
- 指定者:
removeAll在接口中Collection<ForestRequestBody>- 指定者:
removeAll在接口中List<ForestRequestBody>
-
retainAll
- 指定者:
retainAll在接口中Collection<ForestRequestBody>- 指定者:
retainAll在接口中List<ForestRequestBody>
-
clear
public void clear()- 指定者:
clear在接口中Collection<ForestRequestBody>- 指定者:
clear在接口中List<ForestRequestBody>
-
get
- 指定者:
get在接口中List<ForestRequestBody>
-
set
- 指定者:
set在接口中List<ForestRequestBody>
-
add
- 指定者:
add在接口中List<ForestRequestBody>
-
remove
- 指定者:
remove在接口中List<ForestRequestBody>
-
indexOf
- 指定者:
indexOf在接口中List<ForestRequestBody>
-
lastIndexOf
- 指定者:
lastIndexOf在接口中List<ForestRequestBody>
-
listIterator
- 指定者:
listIterator在接口中List<ForestRequestBody>
-
listIterator
- 指定者:
listIterator在接口中List<ForestRequestBody>
-
subList
- 指定者:
subList在接口中List<ForestRequestBody>
-
clone
-
clone
-