Package com.xpn.xwiki.web.sx
Enum SxSource.CachePolicy
- java.lang.Object
-
- java.lang.Enum<SxSource.CachePolicy>
-
- 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
Enum Constants Enum Constant Description 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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.
-
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 nameNullPointerException
- if the argument is null
-
-