Module io.helidon.media.multipart
Package io.helidon.media.multipart
Interface MultiPart<T extends BodyPart>
-
- Type Parameters:
T- body part type
- All Known Implementing Classes:
ReadableMultiPart,WriteableMultiPart
public interface MultiPart<T extends BodyPart>Multipart entity.- See Also:
ReadableMultiPart,WriteableMultiPart
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<T>bodyParts()Get all the nested body parts.default Optional<T>field(String name)Get the first body part identified by the given control name.default Map<String,List<T>>fields()Get all the body parts that are identified with form data control names.default List<T>fields(String name)Get the body parts identified by the given control name.
-
-
-
Method Detail
-
field
default Optional<T> field(String name)
Get the first body part identified by the given control name. The control name is thenameparameter of theContent-Dispositionheader for a body part with disposition typeform-data.- Parameters:
name- control name- Returns:
Optional<BodyPart>, nevernull
-
fields
default List<T> fields(String name)
Get the body parts identified by the given control name. The control name is thenameparameter of theContent-Dispositionheader for a body part with disposition typeform-data.- Parameters:
name- control name- Returns:
List<BodyPart>, nevernull
-
-