|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HttpContentType>
edu.internet2.middleware.grouper.ui.util.HttpContentType
public enum HttpContentType
http content type
Enum Constant Summary | |
---|---|
APPLICATION_JSON
application json content type |
|
TEXT_CSV
text comma separated values |
|
TEXT_HTML
text html content type |
|
TEXT_PLAIN
plain text content type |
|
TEXT_XML
xml content type |
Method Summary | |
---|---|
String |
getContentType()
getter for contentType |
String |
toString()
|
static HttpContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HttpContentType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HttpContentType TEXT_PLAIN
public static final HttpContentType TEXT_XML
public static final HttpContentType TEXT_HTML
public static final HttpContentType APPLICATION_JSON
public static final HttpContentType TEXT_CSV
Method Detail |
---|
public static HttpContentType[] values()
for (HttpContentType c : HttpContentType.values()) System.out.println(c);
public static HttpContentType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getContentType()
public String toString()
toString
in class Enum<HttpContentType>
Enum.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |