Enum Class ContentType

java.lang.Object
java.lang.Enum<ContentType>
dev.galasa.http.ContentType
All Implemented Interfaces:
Serializable, Comparable<ContentType>, Constable

public enum ContentType extends Enum<ContentType>
  • Enum Constant Details

    • APPLICATION_XML

      public static final ContentType APPLICATION_XML
    • APPLICATION_JSON

      public static final ContentType APPLICATION_JSON
    • APPLICATION_OCTET_STREAM

      public static final ContentType APPLICATION_OCTET_STREAM
    • DEFAULT_BINARY

      public static final ContentType DEFAULT_BINARY
    • APPLICATION_X_TAR

      public static final ContentType APPLICATION_X_TAR
    • MULTIPART_FORM_DATA

      public static final ContentType MULTIPART_FORM_DATA
    • APPLICATION_FORM_URLENCODED

      public static final ContentType APPLICATION_FORM_URLENCODED
    • TEXT_PLAIN

      public static final ContentType TEXT_PLAIN
    • TEXT_HTML

      public static final ContentType TEXT_HTML
    • TEXT_XML

      public static final ContentType TEXT_XML
    • RDF_XML

      public static final ContentType RDF_XML
    • SOAP_XML

      public static final ContentType SOAP_XML
  • Method Details

    • values

      public static ContentType[] 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 ContentType 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
    • getC

      public org.apache.http.entity.ContentType getC()
    • getCustom

      public String getCustom()
    • get

      public static ContentType get(org.apache.http.HttpEntity e)
    • getMimeType

      public String getMimeType()
    • fromMimeTypeString

      public static ContentType fromMimeTypeString(String mimeTypeString)
      Get the ContentType for a mime type string
      Parameters:
      mimeTypeString -
      Returns:
      the corresponding ContentType