Interface MultipartBodyBuilder.PartBuilder
- Enclosing class:
- MultipartBodyBuilder
public static interface MultipartBodyBuilder.PartBuilder
Builder that allows for further customization of part headers.
- Since:
- 5.0.2
- Author:
- Arjen Poutsma, Rossen Stoyanchev, Sam Brannen
- 
Method SummaryModifier and TypeMethodDescriptioncontentType(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.
- 
Method Details- 
contentTypeSet the media type of the part.- Parameters:
- contentType- the content type
- Since:
- 5.2
- See Also:
 
- 
filename
- 
headerAdd part header values.- Parameters:
- headerName- the part header name
- headerValues- the part header value(s)
- Returns:
- this builder
- See Also:
 
- 
headersManipulate the part headers through the given consumer.- Parameters:
- headersConsumer- consumer to manipulate the part headers with
- Returns:
- this builder
 
 
-