Interface BodyPart

All Known Implementing Classes:
ReadableBodyPart, WriteableBodyPart

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

    Modifier and Type
    Method
    Description
    Get the reactive representation of the part content.
    default String
    Deprecated.
    since 3.1.2, this method will be updated to return Optional<String> in future releases, use headers().contentDisposition().filename() instead.
    Returns HTTP part headers.
    default boolean
    Test the control name.
    default String
    Deprecated.
    since 3.1.2, this method will be updated to return Optional<String> in future releases, use headers().contentDisposition().name() instead.
  • 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

      @Deprecated(since="3.1.2") default String name()
      Deprecated.
      since 3.1.2, this method will be updated to return Optional<String> in future releases, use headers().contentDisposition().name() instead.
      Get the control name.
      Returns:
      the name parameter of the Content-Disposition header, or null if not present.
    • filename

      @Deprecated(since="3.1.2") default String filename()
      Deprecated.
      since 3.1.2, this method will be updated to return Optional<String> in future releases, use headers().contentDisposition().filename() instead.
      Get the file name.
      Returns:
      the filename parameter of the Content-Disposition header, or null if not present.