All Known Implementing Classes:
ReadableBodyPart, WriteableBodyPart

public interface BodyPart
Body part entity.
See Also:
  • Method Details

    • content

      Get the reactive representation of the part content.
      Returns:
      MessageBodyContent, never null
    • headers

      BodyPartHeaders headers()
      Returns HTTP part headers.
      Returns:
      BodyPartHeaders, never null
    • isNamed

      default boolean isNamed(String name)
      Test the control name.
      Parameters:
      name - the name to test
      Returns:
      true if the name parameter of the Content-Disposition header matches, false otherwise
    • name

      default Optional<String> name()
      Get the control name.
      Returns:
      the name parameter of the Content-Disposition header.
    • filename

      default Optional<String> filename()
      Get the file name.
      Returns:
      the filename parameter of the Content-Disposition header.