public enum ContentMessageType extends Enum<ContentMessageType>
| Modifier and Type | Method and Description |
|---|---|
static ContentMessageType |
forContentType(String contentType)
Finds the corresponding enum value for the string (value of a Content-Type header) in the argument.
|
static ContentMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentMessageType TEXT
public static final ContentMessageType HTML
public static ContentMessageType[] values()
for (ContentMessageType c : ContentMessageType.values()) System.out.println(c);
public static ContentMessageType 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 static ContentMessageType forContentType(String contentType)
contentType - value of a Content-Type headerCopyright © 2023. All rights reserved.