Package | Description |
---|---|
org.springframework.http.client |
Contains an abstraction over client-side HTTP.
|
Modifier and Type | Method and Description |
---|---|
<T,P extends Publisher<T>> |
MultipartBodyBuilder.asyncPart(String name,
P publisher,
Class<T> elementClass)
Add a part from
Publisher content. |
<T,P extends Publisher<T>> |
MultipartBodyBuilder.asyncPart(String name,
P publisher,
ParameterizedTypeReference<T> typeReference)
Variant of
MultipartBodyBuilder.asyncPart(String, Publisher, Class) with a
ParameterizedTypeReference for the element type information. |
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.PartBuilder.contentType(MediaType contentType)
Set the media type of the part.
|
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.PartBuilder.filename(String filename)
Set the filename parameter for a file part.
|
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.PartBuilder.header(String headerName,
String... headerValues)
Add part header values.
|
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.PartBuilder.headers(Consumer<HttpHeaders> headersConsumer)
Manipulate the part headers through the given consumer.
|
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.part(String name,
Object part)
Add a part where the Object may be:
String -- form field
Resource -- file part
Object -- content to be encoded (e.g. |
MultipartBodyBuilder.PartBuilder |
MultipartBodyBuilder.part(String name,
Object part,
MediaType contentType)
Variant of
MultipartBodyBuilder.part(String, Object) that also accepts a MediaType. |