类 MultipartBodyBuilder.DefaultPartBuilder
java.lang.Object
cn.taketoday.http.client.MultipartBodyBuilder.DefaultPartBuilder
- 所有已实现的接口:
MultipartBodyBuilder.PartBuilder
- 封闭类:
- MultipartBodyBuilder
private static class MultipartBodyBuilder.DefaultPartBuilder
extends Object
implements MultipartBodyBuilder.PartBuilder
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明HttpEntity<?>build()contentType(MediaType contentType) Set the media type of the part.Set the filename parameter for a file part.Add part header values.headers(Consumer<HttpHeaders> headersConsumer) Manipulate the part headers through the given consumer.private HttpHeaders
-
字段详细资料
-
name
-
headers
-
body
-
-
构造器详细资料
-
DefaultPartBuilder
-
-
方法详细资料
-
contentType
从接口复制的说明:MultipartBodyBuilder.PartBuilderSet the media type of the part.- 指定者:
contentType在接口中MultipartBodyBuilder.PartBuilder- 参数:
contentType- the content type- 另请参阅:
-
filename
从接口复制的说明:MultipartBodyBuilder.PartBuilderSet the filename parameter for a file part. This should not be necessary withResourcebased parts that expose a filename but may be useful forPublisherparts.- 指定者:
filename在接口中MultipartBodyBuilder.PartBuilder- 参数:
filename- the filename to set on the Content-Disposition
-
header
从接口复制的说明:MultipartBodyBuilder.PartBuilderAdd part header values.- 指定者:
header在接口中MultipartBodyBuilder.PartBuilder- 参数:
headerName- the part header nameheaderValues- the part header value(s)- 返回:
- this builder
- 另请参阅:
-
MultiValueMap.addAll(Object, Collection)
-
headers
从接口复制的说明:MultipartBodyBuilder.PartBuilderManipulate the part headers through the given consumer.- 指定者:
headers在接口中MultipartBodyBuilder.PartBuilder- 参数:
headersConsumer- consumer to manipulate the part headers with- 返回:
- this builder
-
initHeadersIfNecessary
-
build
-