Enum Class ClientCacheType
- すべての実装されたインタフェース:
Serializable
,Comparable<ClientCacheType>
,Constable
クライアントキャッシュ指定(Cache-Controlヘッダ)の種別です。
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
列挙型定数の概要
列挙定数 -
メソッドの概要
修飾子とタイプメソッド説明static ClientCacheType
Returns the enum constant of this class with the specified name.static ClientCacheType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
列挙型定数の詳細
-
CACHE
キャッシュを許可します。 具体的にはCache-Controlをprivate指定します。 CACHEを指定する場合は、合わせてclientCacheMaxAgeも指定してください。 -
CACHE_PUBLIC
キャッシュを許可します。 具体的にはCache-Controlをpublic指定します。 CACHE_PUBLICを指定する場合は、合わせてclientCacheMaxAgeも指定してください。 -
NO_CACHE
キャッシュを許可しません。 具体的にはCache-Controlをprivate, no-store, no-cache, must-revalidate指定します (加えて、HTTP/1.0の場合は、Pragmaをno-cache指定します)。
-
-
メソッドの詳細
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 戻り値:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- パラメータ:
name
- 返される列挙型定数の名前。- 戻り値:
- 指定した名前の列挙型定数
- 例外:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 引数がnullの場合
-