- java.lang.Object
-
- io.helidon.media.multipart.WriteableBodyPart
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WriteableBodyPart.Builder
Builder class for creatingBodyPart
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WriteableBodyPart.Builder
builder()
Create a new builder instance.WriteableBodyPartContent
content()
Get the reactive representation of the part content.static WriteableBodyPart
create(Object entity)
Create a new out-bound part backed by the specified entity.WriteableBodyPartHeaders
headers()
Returns HTTP part headers.
-
-
-
Method Detail
-
content
public WriteableBodyPartContent content()
Description copied from interface:BodyPart
Get the reactive representation of the part content.- Specified by:
content
in interfaceBodyPart
- Returns:
MessageBodyContent
, nevernull
-
headers
public WriteableBodyPartHeaders headers()
Description copied from interface:BodyPart
Returns HTTP part headers.
-
create
public static WriteableBodyPart create(Object entity)
Create a new out-bound part backed by the specified entity.- Parameters:
entity
- entity for the created part content- Returns:
- BodyPart
-
builder
public static WriteableBodyPart.Builder builder()
Create a new builder instance.- Returns:
- Builder
-
-