edu.internet2.middleware.grouper.ui.util
Enum HttpContentType

java.lang.Object
  extended by java.lang.Enum<HttpContentType>
      extended by edu.internet2.middleware.grouper.ui.util.HttpContentType
All Implemented Interfaces:
Serializable, Comparable<HttpContentType>

public enum HttpContentType
extends 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

TEXT_PLAIN

public static final HttpContentType TEXT_PLAIN
plain text content type


TEXT_XML

public static final HttpContentType TEXT_XML
xml content type


TEXT_HTML

public static final HttpContentType TEXT_HTML
text html content type


APPLICATION_JSON

public static final HttpContentType APPLICATION_JSON
application json content type


TEXT_CSV

public static final HttpContentType TEXT_CSV
text comma separated values

Method Detail

values

public static HttpContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HttpContentType c : HttpContentType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HttpContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

getContentType

public String getContentType()
getter for contentType

Returns:
contentType

toString

public String toString()
Overrides:
toString in class Enum<HttpContentType>
See Also:
Enum.toString()