- 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 String
filename()
Deprecated.headers()
Returns HTTP part headers.default boolean
Test the control name.default String
name()
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:
true
if thename
parameter of theContent-Disposition
header matches,false
otherwise
-
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
name
parameter of theContent-Disposition
header, ornull
if 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
filename
parameter of theContent-Disposition
header, ornull
if not present.
-
Optional<String>
in future releases, useheaders().contentDisposition().filename()
instead.