ro.isdc.wro.http.support
Enum HttpHeader

java.lang.Object
  extended by java.lang.Enum<HttpHeader>
      extended by 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

Enum Constant Summary
CACHE_CONTROL
           
CONTENT_ENCODING
           
ETAG
           
EXPIRES
           
IF_MODIFIED_SINCE
           
IF_NONE_MATCH
           
LAST_MODIFIED
           
PRAGMA
           
 
Method Summary
 String getHeaderName()
           
 String toString()
          Use this method instead of name() to get the header name.
static HttpHeader valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HttpHeader[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.