Interface MimeType


public interface MimeType
A media type of the resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    static MimeType
    of(String value)
    Returns the MimeType instance for the given value.
    default String
    Returns a string that represents the media type value.
  • Method Details

    • of

      static MimeType of(String value)
      Returns the MimeType instance for the given value.
      Throws:
      IllegalArgumentException - when the value is empty of blank
    • value

      default String value()
      Returns a string that represents the media type value. For example "text/plain", "image/png", "application/pdf", etc.