Package dev.galasa.http
Enum Class ContentType
- All Implemented Interfaces:
Serializable
,Comparable<ContentType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentType
fromMimeTypeString
(String mimeTypeString) Get theContentType
for a mime type stringstatic ContentType
get
(org.apache.http.HttpEntity e) org.apache.http.entity.ContentType
getC()
static ContentType
Returns the enum constant of this class with the specified name.static ContentType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLICATION_XML
-
APPLICATION_JSON
-
APPLICATION_OCTET_STREAM
-
DEFAULT_BINARY
-
APPLICATION_X_TAR
-
MULTIPART_FORM_DATA
-
APPLICATION_FORM_URLENCODED
-
TEXT_PLAIN
-
TEXT_HTML
-
TEXT_XML
-
RDF_XML
-
SOAP_XML
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getC
public org.apache.http.entity.ContentType getC() -
getCustom
-
get
-
getMimeType
-
fromMimeTypeString
Get theContentType
for a mime type string- Parameters:
mimeTypeString
-- Returns:
- the corresponding
ContentType
-