Package | Description |
---|---|
com.dtflys.forest.backend.body | |
com.dtflys.forest.backend.httpclient.body | |
com.dtflys.forest.backend.okhttp3.body | |
com.dtflys.forest.config | |
com.dtflys.forest.http |
Modifier and Type | Method and Description |
---|---|
protected List<RequestNameValue> |
AbstractBodyBuilder.processFromNameValueList(List<RequestNameValue> nameValueList,
ForestConfiguration configuration)
处理Form表单中的键值对列表
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBodyBuilder.processFormArrayItem(List<RequestNameValue> newNameValueList,
ForestConfiguration configuration,
String name,
Object array,
int target)
处理Form表单中的数组项
|
protected void |
AbstractBodyBuilder.processFormCollectionItem(List<RequestNameValue> newNameValueList,
ForestConfiguration configuration,
String name,
Collection collection,
int target)
处理Form表单中的集合项
|
protected void |
AbstractBodyBuilder.processFormItem(List<RequestNameValue> newNameValueList,
ForestConfiguration configuration,
String name,
Object value,
int target)
处理Form表单中的项
|
protected void |
AbstractBodyBuilder.processFormMapItem(List<RequestNameValue> newNameValueList,
ForestConfiguration configuration,
String name,
Map map,
int target)
处理Form表单中的Map项
|
protected List<RequestNameValue> |
AbstractBodyBuilder.processFromNameValueList(List<RequestNameValue> nameValueList,
ForestConfiguration configuration)
处理Form表单中的键值对列表
|
protected abstract void |
AbstractBodyBuilder.setFileBody(T httpReq,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList,
List<ForestMultipart> multiparts,
LifeCycleHandler lifeCycleHandler)
设置文件请求体
|
protected abstract void |
AbstractBodyBuilder.setFormBody(T httpReq,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList)
设置表单请求体
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpclientBodyBuilder.setFileBody(T httpReq,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList,
List<ForestMultipart> multiparts,
LifeCycleHandler lifeCycleHandler) |
protected void |
HttpclientBodyBuilder.setFormBody(T httpReq,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractOkHttp3BodyBuilder.setFileBody(okhttp3.Request.Builder builder,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList,
List<ForestMultipart> multiparts,
LifeCycleHandler lifeCycleHandler) |
protected void |
AbstractOkHttp3BodyBuilder.setFormBody(okhttp3.Request.Builder builder,
ForestRequest request,
String charset,
String contentType,
List<RequestNameValue> nameValueList) |
Modifier and Type | Method and Description |
---|---|
List<RequestNameValue> |
ForestConfiguration.getDefaultHeaders()
获取全局默认请求头信息列表
|
List<RequestNameValue> |
ForestConfiguration.getDefaultParameters()
获取全局默认请求参数列表
|
Modifier and Type | Method and Description |
---|---|
ForestConfiguration |
ForestConfiguration.setDefaultHeaders(List<RequestNameValue> defaultHeaders)
设置全局默认请求头信息列表
|
ForestConfiguration |
ForestConfiguration.setDefaultParameters(List<RequestNameValue> defaultParameters)
设置全局默认请求参数列表
|
Modifier and Type | Method and Description |
---|---|
List<RequestNameValue> |
ForestRequest.getDataNameValueList() |
List<RequestNameValue> |
ForestRequest.getHeaderNameValueList() |
List<RequestNameValue> |
ForestRequest.getQueryNameValueList()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ForestRequest |
ForestRequest.addBody(RequestNameValue nameValue)
Deprecated.
|
ForestRequest |
ForestRequest.addData(RequestNameValue nameValue)
Deprecated.
|
ForestRequest |
ForestRequest.addHeader(RequestNameValue nameValue)
添加请求头到该请求中
|
ForestRequest |
ForestRequest.addNameValue(RequestNameValue nameValue)
添加键值对
|
Modifier and Type | Method and Description |
---|---|
ForestRequest |
ForestRequest.addBody(List<RequestNameValue> nameValueList)
Deprecated.
|
ForestRequest |
ForestRequest.addData(List<RequestNameValue> data)
Deprecated.
|
ForestRequest |
ForestRequest.addHeaders(List<RequestNameValue> nameValues)
批量添加请求头到该请求中
|
ForestRequest |
ForestRequest.addNameValue(List<RequestNameValue> nameValueList)
添加键值对列表
|
Copyright © 2020. All rights reserved.