All Superinterfaces:
Headers, Iterable<Http.HeaderValue>
All Known Implementing Classes:
ReadableBodyPartHeaders, WriteableBodyPartHeaders

public interface BodyPartHeaders extends Headers
Body part headers.
  • Method Details

    • partContentType

      HttpMediaType partContentType()
      Get the Content-Type header. If the Content-Type header is not present, the default value is retrieved using defaultContentType().
      Returns:
      HttpMediaType, never null
    • contentDisposition

      ContentDisposition contentDisposition()
      Get the Content-Disposition header.
      Returns:
      ContentDisposition, never null
    • defaultContentType

      default HttpMediaType defaultContentType()
      Returns the default Content-Type header value: MediaTypes.APPLICATION_OCTET_STREAM if the Content-Disposition header is present with a non empty value, otherwise MediaTypes.TEXT_PLAIN.
      Returns:
      MediaType, never null
      See Also: