net.sourceforge.ajaxtags.servlets
Enum AjaxActionHelper.HTMLAjaxHeader

java.lang.Object
  extended by java.lang.Enum<AjaxActionHelper.HTMLAjaxHeader>
      extended by net.sourceforge.ajaxtags.servlets.AjaxActionHelper.HTMLAjaxHeader
All Implemented Interfaces:
Serializable, Comparable<AjaxActionHelper.HTMLAjaxHeader>
Enclosing class:
AjaxActionHelper

public static enum AjaxActionHelper.HTMLAjaxHeader
extends Enum<AjaxActionHelper.HTMLAjaxHeader>

Some HTML-Header which can be easily enabled.


Enum Constant Summary
CACHE_CONTROL
          Set HTTP/1.1 no-cache headers.
PRAGMA
          Set standard HTTP/1.0 no-cache header.
 
Method Summary
 void disable(javax.servlet.http.HttpServletResponse response)
          Disable the header.
 void enable(javax.servlet.http.HttpServletResponse response)
          Enable the header in the HttpServletResponse.
static AjaxActionHelper.HTMLAjaxHeader valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AjaxActionHelper.HTMLAjaxHeader[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CACHE_CONTROL

public static final AjaxActionHelper.HTMLAjaxHeader CACHE_CONTROL
Set HTTP/1.1 no-cache headers.


PRAGMA

public static final AjaxActionHelper.HTMLAjaxHeader PRAGMA
Set standard HTTP/1.0 no-cache header.

Method Detail

values

public static AjaxActionHelper.HTMLAjaxHeader[] 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 (AjaxActionHelper.HTMLAjaxHeader c : AjaxActionHelper.HTMLAjaxHeader.values())
    System.out.println(c);

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

valueOf

public static AjaxActionHelper.HTMLAjaxHeader 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

enable

public void enable(javax.servlet.http.HttpServletResponse response)
Enable the header in the HttpServletResponse.

Parameters:
response - the HttpServletResponse where we should write the header to.

disable

public void disable(javax.servlet.http.HttpServletResponse response)
Disable the header. This is not yet implemented.

Parameters:
response - the HttpServletResponse


Copyright © 2005-2010 The Ajaxtags Team. All Rights Reserved.