- All Known Implementing Classes:
ReadableBodyPart,WriteableBodyPart
public interface BodyPart
Body part entity.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncontent()Get the reactive representation of the part content.default Stringfilename()Deprecated.headers()Returns HTTP part headers.default booleanTest the control name.default Stringname()Deprecated.since 3.1.2, this method will be updated to returnOptional<String>in future releases, useheaders().contentDisposition().name()instead.
-
Method Details
-
content
MessageBodyContent content()Get the reactive representation of the part content.- Returns:
MessageBodyContent, nevernull
-
headers
BodyPartHeaders headers()Returns HTTP part headers.- Returns:
- BodyPartHeaders, never
null
-
isNamed
Test the control name.- Parameters:
name- the name to test- Returns:
trueif thenameparameter of theContent-Dispositionheader matches,falseotherwise
-
name
Deprecated.since 3.1.2, this method will be updated to returnOptional<String>in future releases, useheaders().contentDisposition().name()instead.Get the control name.- Returns:
- the
nameparameter of theContent-Dispositionheader, ornullif not present.
-
filename
Deprecated.since 3.1.2, this method will be updated to returnOptional<String>in future releases, useheaders().contentDisposition().filename()instead.Get the file name.- Returns:
- the
filenameparameter of theContent-Dispositionheader, ornullif not present.
-
Optional<String>in future releases, useheaders().contentDisposition().filename()instead.