java.lang.Object
io.helidon.media.multipart.ReadableBodyPart.Builder
- All Implemented Interfaces:
Builder<ReadableBodyPart.Builder,
,ReadableBodyPart> Supplier<ReadableBodyPart>
- Enclosing class:
- ReadableBodyPart
public static final class ReadableBodyPart.Builder
extends Object
implements Builder<ReadableBodyPart.Builder,ReadableBodyPart>
Builder class for creating
BodyPart
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuffered()
Mark the part content as buffered.build()
Build the instance from this builder.content
(MessageBodyReadableContent content) Sets the content for this part.headers
(ReadableBodyPartHeaders headers) Set the headers for this part.headers
(Supplier<ReadableBodyPartHeaders> supplier) Set the headers for this part.Set the headers for this part.
-
Method Details
-
content
Sets the content for this part.- Parameters:
content
- readable content- Returns:
- this builder instance
-
buffered
Mark the part content as buffered.- Returns:
- this builder instance
-
headers
Set the headers for this part.- Parameters:
headers
- headers- Returns:
- this builder instance
-
headers
Set the headers for this part.- Parameters:
supplier
- headers supplier- Returns:
- this builder instance
-
headers
Set the headers for this part.- Parameters:
headers
- headers map- Returns:
- this builder instance
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ReadableBodyPart.Builder,
ReadableBodyPart> - Returns:
- instance of the built type
-