Interface AggregatedMultipart
public interface AggregatedMultipart
A complete multipart whose body parts are readily available.
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the nested body parts.boundary()
Returns the boundary string.default @Nullable AggregatedBodyPart
Returns the first body part identified by the given control name.default List<AggregatedBodyPart>
Returns the body parts identified by the given control name.names()
Returns the all control names of the body parts.static AggregatedMultipart
of
(AggregatedBodyPart... bodyParts) Returns a newAggregatedMultipart
with the default boundary.static AggregatedMultipart
of
(Iterable<? extends AggregatedBodyPart> bodyParts) Returns a newAggregatedMultipart
with the default boundary.static AggregatedMultipart
of
(String boundary, AggregatedBodyPart... bodyParts) Returns a newAggregatedMultipart
with the specifiedboundary
.static AggregatedMultipart
of
(String boundary, Iterable<? extends AggregatedBodyPart> bodyParts) Returns a newAggregatedMultipart
with the specifiedboundary
.
-
Method Details
-
of
Returns a newAggregatedMultipart
with the default boundary.- Parameters:
bodyParts
- the body part of the multipart message
-
of
Returns a newAggregatedMultipart
with the default boundary.- Parameters:
bodyParts
- the body part of the multipart message
-
of
Returns a newAggregatedMultipart
with the specifiedboundary
.- Parameters:
boundary
- the boundary of the multipart messagebodyParts
- the body part of the multipart message
-
of
Returns a newAggregatedMultipart
with the specifiedboundary
.- Parameters:
boundary
- the boundary of the multipart messagebodyParts
- the body part of the multipart message
-
boundary
String boundary()Returns the boundary string. -
bodyParts
List<AggregatedBodyPart> bodyParts()Returns all the nested body parts. -
field
Returns the first body part identified by the given control name. The control name is thename
parameter of the"content-disposition"
header for a body part with disposition typeform-data
.- Parameters:
name
- control name- Returns:
- the
BodyPart
of the control name, ornull
if not present.
-
fields
Returns the body parts identified by the given control name. The control name is thename
parameter of the"content-disposition"
header for a body part with disposition typeform-data
.- Parameters:
name
- control name
-
names
Returns the all control names of the body parts. The control name is thename
parameter of the"content-disposition"
header for a body part with disposition typeform-data
.
-