java.lang.Object
io.helidon.media.multipart.ReadableBodyPart.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<ReadableBodyPart.Builder,,ReadableBodyPart> Supplier<ReadableBodyPart>
- Enclosing class:
- ReadableBodyPart
public static final class ReadableBodyPart.Builder
extends Object
implements io.helidon.common.Builder<ReadableBodyPart.Builder,ReadableBodyPart>
Builder class for creating
BodyPart instances.-
Method Summary
Modifier and TypeMethodDescriptionbuffered()Mark the part content as buffered.build()content(MessageBodyReadableContent content) Sets the content for this part.headers(ReadableBodyPartHeaders headers) Set the headers for this part.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
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
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<ReadableBodyPart.Builder,ReadableBodyPart>
-