Enum Class MimeType

java.lang.Object
java.lang.Enum<MimeType>
ch.oliumbi.compass.core.enums.MimeType
All Implemented Interfaces:
Translatable<String>, Serializable, Comparable<MimeType>, Constable

public enum MimeType extends Enum<MimeType> implements Translatable<String>
  • Enum Constant Details

    • PLAIN

      public static final MimeType PLAIN
    • HTML

      public static final MimeType HTML
    • CSS

      public static final MimeType CSS
    • JAVASCRIPT

      public static final MimeType JAVASCRIPT
    • JSON

      public static final MimeType JSON
    • XML

      public static final MimeType XML
    • MULTI_PART

      public static final MimeType MULTI_PART
    • PDF

      public static final MimeType PDF
    • PNG

      public static final MimeType PNG
    • JPEG

      public static final MimeType JPEG
    • SVG

      public static final MimeType SVG
    • ICON

      public static final MimeType ICON
    • WOFF2

      public static final MimeType WOFF2
    • TTF

      public static final MimeType TTF
    • OTF

      public static final MimeType OTF
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
  • Method Details

    • values

      public static MimeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MimeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • translate

      public String translate()
      Specified by:
      translate in interface Translatable<String>
    • extension

      public String extension()