- java.lang.Object
-
- io.helidon.media.multipart.WriteableMultiPart
-
- All Implemented Interfaces:
MultiPart<WriteableBodyPart>
public class WriteableMultiPart extends Object implements MultiPart<WriteableBodyPart>
Writeable multipart entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WriteableMultiPart.Builder
Builder class for creatingWriteableMultiPart
instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<WriteableBodyPart>
bodyParts()
Get all the nested body parts.static WriteableMultiPart.Builder
builder()
Create a new builder instance.static WriteableMultiPart
create(WriteableBodyPart... entities)
Shorthand for creatingWriteableMultiPart
instances with the specified entities as body parts.static WriteableMultiPart
create(Collection<WriteableBodyPart> entities)
Shorthand for creatingWriteableMultiPart
instances with the specified entities as body parts.static WriteableMultiPart
create(Supplier<WriteableBodyPart>... suppliers)
Shorthand for creatingWriteableMultiPart
instances with the specified entities as body parts.
-
-
-
Method Detail
-
bodyParts
public List<WriteableBodyPart> bodyParts()
Description copied from interface:MultiPart
Get all the nested body parts.- Specified by:
bodyParts
in interfaceMultiPart<WriteableBodyPart>
- Returns:
- list of
BodyPart
-
create
public static WriteableMultiPart create(WriteableBodyPart... entities)
Shorthand for creatingWriteableMultiPart
instances with the specified entities as body parts.- Parameters:
entities
- the body part entities- Returns:
- created MultiPart
-
create
public static WriteableMultiPart create(Supplier<WriteableBodyPart>... suppliers)
Shorthand for creatingWriteableMultiPart
instances with the specified entities as body parts.- Parameters:
suppliers
- suppliers of body part entity- Returns:
- created MultiPart
-
create
public static WriteableMultiPart create(Collection<WriteableBodyPart> entities)
Shorthand for creatingWriteableMultiPart
instances with the specified entities as body parts.- Parameters:
entities
- the body part entities- Returns:
- created MultiPart
-
builder
public static WriteableMultiPart.Builder builder()
Create a new builder instance.- Returns:
- Builder
-
-