public static enum ContentType.Major extends java.lang.Enum<ContentType.Major>
Enum Constant and Description |
---|
application |
audio |
example |
font |
image |
message |
model |
multipart |
text |
video |
Modifier and Type | Method and Description |
---|---|
static ContentType.Major |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContentType.Major[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentType.Major text
public static final ContentType.Major application
public static final ContentType.Major image
public static final ContentType.Major audio
public static final ContentType.Major video
public static final ContentType.Major multipart
public static final ContentType.Major model
public static final ContentType.Major font
public static final ContentType.Major example
public static final ContentType.Major message
public static ContentType.Major[] values()
for (ContentType.Major c : ContentType.Major.values()) System.out.println(c);
public static ContentType.Major valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null