public enum MimeType extends Enum<MimeType>
Enum Constant and Description |
---|
APPLICATION_FORM |
APPLICATION_JSON |
APPLICATION_JSON_UTF8 |
APPLICATION_OCTETSTREAM |
APPLICATION_TAR |
APPLICATION_ZIP |
NOT_SET |
TEXT_HTML |
TEXT_PLAIN |
Modifier and Type | Method and Description |
---|---|
org.apache.http.entity.ContentType |
getContentType() |
static hudson.util.ListBoxModel |
getContentTypeFillItems() |
String |
getValue() |
static MimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MimeType NOT_SET
public static final MimeType TEXT_HTML
public static final MimeType TEXT_PLAIN
public static final MimeType APPLICATION_FORM
public static final MimeType APPLICATION_JSON
public static final MimeType APPLICATION_JSON_UTF8
public static final MimeType APPLICATION_TAR
public static final MimeType APPLICATION_ZIP
public static final MimeType APPLICATION_OCTETSTREAM
public static MimeType[] values()
for (MimeType c : MimeType.values()) System.out.println(c);
public static MimeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public org.apache.http.entity.ContentType getContentType()
public static hudson.util.ListBoxModel getContentTypeFillItems()
Copyright © 2016–2025. All rights reserved.