ro.isdc.wro.http.support
Enum HttpHeader
java.lang.Object
java.lang.Enum<HttpHeader>
ro.isdc.wro.http.support.HttpHeader
- All Implemented Interfaces:
- Serializable, Comparable<HttpHeader>
public enum HttpHeader
- extends Enum<HttpHeader>
Enumerates Http Headers used by wro4j.
- Author:
- Alex Objelean
CACHE_CONTROL
public static final HttpHeader CACHE_CONTROL
LAST_MODIFIED
public static final HttpHeader LAST_MODIFIED
ETAG
public static final HttpHeader ETAG
EXPIRES
public static final HttpHeader EXPIRES
IF_MODIFIED_SINCE
public static final HttpHeader IF_MODIFIED_SINCE
IF_NONE_MATCH
public static final HttpHeader IF_NONE_MATCH
CONTENT_ENCODING
public static final HttpHeader CONTENT_ENCODING
PRAGMA
public static final HttpHeader PRAGMA
values
public static HttpHeader[] 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 (HttpHeader c : HttpHeader.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HttpHeader 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
getHeaderName
public String getHeaderName()
- Returns:
- lower-case string representation of the header.
toString
public String toString()
- Use this method instead of name() to get the header name.
- Overrides:
toString
in class Enum<HttpHeader>
- Returns:
- the name of the header.
Copyright © 2008-2013. All Rights Reserved.