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
@Deprecated(since="2.5.0", forRemoval=true) public interface MultiPart<T extends BodyPart>
Deprecated, for removal: This API element is subject to removal in a future version.Usecontent().asStream(ReadableBodyPart.class)
instead to read multipart entities. This interface will be removed at 3.0.0 version.Multipart entity.- See Also:
ReadableMultiPart
,WriteableMultiPart
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description List<T>
bodyParts()
Deprecated, for removal: This API element is subject to removal in a future version.Get all the nested body parts.default Optional<T>
field(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Get the first body part identified by the given control name.default Map<String,List<T>>
fields()
Deprecated, for removal: This API element is subject to removal in a future version.Get all the body parts that are identified with form data control names.default List<T>
fields(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Get the body parts identified by the given control name.
-
-
-
Method Detail
-
bodyParts
List<T> bodyParts()
Deprecated, for removal: This API element is subject to removal in a future version.Get all the nested body parts.- Returns:
- list of
BodyPart
-
field
default Optional<T> field(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Get the first body part identified by the given control name. The control name is thename
parameter of theContent-Disposition
header for a body part with disposition typeform-data
.- Parameters:
name
- control name- Returns:
Optional<BodyPart>
, nevernull
-
fields
default List<T> fields(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Get the body parts identified by the given control name. The control name is thename
parameter of theContent-Disposition
header for a body part with disposition typeform-data
.- Parameters:
name
- control name- Returns:
List<BodyPart>
, nevernull
-
-