net.sf.sotacs.dynimg.api
Enum CachingMode

java.lang.Object
  extended by java.lang.Enum<CachingMode>
      extended by net.sf.sotacs.dynimg.api.CachingMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CachingMode>

public enum CachingMode
extends java.lang.Enum<CachingMode>


Enum Constant Summary
application
          Same as session but the key is only the image format and the parameter array
client
          client browser caches the page with the whole url as key until expiration date is reached.
session
          In addition to client, the server caches the image key in the session id together with the image format (jpg or png) and the parameter array
 
Method Summary
static CachingMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CachingMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

client

public static final CachingMode client
client browser caches the page with the whole url as key until expiration date is reached.


session

public static final CachingMode session
In addition to client, the server caches the image key in the session id together with the image format (jpg or png) and the parameter array


application

public static final CachingMode application
Same as session but the key is only the image format and the parameter array

Method Detail

values

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

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

valueOf

public static CachingMode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name