Package nablarch.common.web.session
Class SessionEntry
java.lang.Object
nablarch.common.web.session.SessionEntry
セッションに登録するオブジェクト。
JSPなどから値オブジェクトのプロパティを参照するために、Mapのインタフェースを実装している。
Mapインターフェースで操作する場合は、unmodifiableなMapとして振る舞う。
また、getter実行時に例外が発生する場合は、空のMapとして振る舞う。
- Author:
- kawasima, tajima
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()getKey()セッションへの登録キーを取得する。このエントリーを記録する際に使用するSessionStoreを使用する。getValue()セッションに登録された値を取得する。booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SessionEntry
コンストラクタ。- Parameters:
key- セッションキーvalue- セッション値storage- セッションストレージ
-
-
Method Details
-
getKey
セッションへの登録キーを取得する。- Returns:
- セッションキー
-
getValue
セッションに登録された値を取得する。- Returns:
- セッション値
-
getStorage
このエントリーを記録する際に使用するSessionStoreを使用する。- Returns:
- セッションストレージ
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-