com.xpn.xwiki.web.sx
Enum SxSource.CachePolicy

java.lang.Object
  extended by java.lang.Enum<SxSource.CachePolicy>
      extended by com.xpn.xwiki.web.sx.SxSource.CachePolicy
All Implemented Interfaces:
Serializable, Comparable<SxSource.CachePolicy>
Enclosing interface:
SxSource

public static enum SxSource.CachePolicy
extends Enum<SxSource.CachePolicy>

Cache policies available for extensions.


Enum Constant Summary
DEFAULT
          Cache for the proxy/browser's default time, It will be held in the server cache an amount of time specified in AbstractSxAction.
FORBID
          Do not cache at all in server cache or in proxy/browser.
LONG
          Cache for a long time.
SHORT
          Cache for a short time.
 
Method Summary
static SxSource.CachePolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SxSource.CachePolicy[] 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

LONG

public static final SxSource.CachePolicy LONG
Cache for a long time.

See Also:
AbstractSxAction.LONG_CACHE_DURATION

SHORT

public static final SxSource.CachePolicy SHORT
Cache for a short time.

See Also:
AbstractSxAction.SHORT_CACHE_DURATION

DEFAULT

public static final SxSource.CachePolicy DEFAULT
Cache for the proxy/browser's default time, It will be held in the server cache an amount of time specified in AbstractSxAction.

See Also:
AbstractSxAction#DEFAULT_CACHE_DURATION

FORBID

public static final SxSource.CachePolicy FORBID
Do not cache at all in server cache or in proxy/browser.

Method Detail

values

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

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

valueOf

public static SxSource.CachePolicy 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


Copyright © 2004-2012 XWiki. All Rights Reserved.