Enum Class MimeType

java.lang.Object
java.lang.Enum<MimeType>
org.apache.camel.spi.MimeType
All Implemented Interfaces:
Serializable, Comparable<MimeType>, Constable

public enum MimeType extends Enum<MimeType>
Mime types known to Camel data types and its transformers.
  • Enum Constant Details

    • JSON

      public static final MimeType JSON
    • PROTOBUF

      public static final MimeType PROTOBUF
    • PROTOBUF_BINARY

      public static final MimeType PROTOBUF_BINARY
    • PROTOBUF_STRUCT

      public static final MimeType PROTOBUF_STRUCT
    • PROTOBUF_JAVA_OBJECT

      public static final MimeType PROTOBUF_JAVA_OBJECT
    • AVRO

      public static final MimeType AVRO
    • AVRO_BINARY

      public static final MimeType AVRO_BINARY
    • AVRO_STRUCT

      public static final MimeType AVRO_STRUCT
    • AVRO_JAVA_OBJECT

      public static final MimeType AVRO_JAVA_OBJECT
    • BINARY

      public static final MimeType BINARY
    • TEXT

      public static final MimeType TEXT
    • JAVA_OBJECT

      public static final MimeType JAVA_OBJECT
    • STRUCT

      public static final MimeType STRUCT
  • 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
    • type

      public String type()
    • of

      public static MimeType of(String type)