Package nablarch.fw.web.servlet
Class SessionAttributeMap
HttpSessionオブジェクトに対してMapインターフェースを与えるラッパー。- Author:
- Iwauo Tajima <iwauo@tis.co.jp>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionSessionAttributeMap(jakarta.servlet.http.HttpSession servletSession) HTTPセッションに対する、Mapインターフェースへのラッパーを作成する。 -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) 指定した属性名に対応する属性値を取得する。属性名のイテレータを取得する。jakarta.servlet.http.HttpSessionこのMapの実体であるHTTPSessionオブジェクトを返す。voidremoveAttribute(String name) 指定された属性を削除する。voidsetAttribute(String name, Object value) 属性名に対応する属性値を設定する。setBackend(jakarta.servlet.http.HttpSession session) このMapの実体であるHTTPSessionオブジェクトを設定する。Methods inherited from class nablarch.core.util.map.AttributeMap
clear, containsKey, containsValue, get, getDelegateMap, put, putAll, remove, sizeMethods inherited from class nablarch.core.util.map.MapWrapper
entrySet, equals, getDelegateMapOfType, hashCode, isEmpty, keySet, toString, valuesMethods inherited from class java.util.AbstractMap
cloneMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
SessionAttributeMap
public SessionAttributeMap(jakarta.servlet.http.HttpSession servletSession) HTTPセッションに対する、Mapインターフェースへのラッパーを作成する。- Parameters:
servletSession- HTTPセッションオブジェクト
-
-
Method Details
-
getBackend
public jakarta.servlet.http.HttpSession getBackend()このMapの実体であるHTTPSessionオブジェクトを返す。- Returns:
- このMapの実体であるHTTPSession
-
setBackend
このMapの実体であるHTTPSessionオブジェクトを設定する。- Parameters:
session- このMapの実体であるHTTPSession- Returns:
- このオブジェクト自体
-
getAttribute
指定した属性名に対応する属性値を取得する。- Specified by:
getAttributein classAttributeMap<String,Object> - Parameters:
name- キー名- Returns:
- 属性値
-
getAttributeNames
属性名のイテレータを取得する。- Specified by:
getAttributeNamesin classAttributeMap<String,Object> - Returns:
- 属性名のイテレータ
-
setAttribute
属性名に対応する属性値を設定する。- Specified by:
setAttributein classAttributeMap<String,Object> - Parameters:
name- 属性名value- 属性値
-
removeAttribute
指定された属性を削除する。- Specified by:
removeAttributein classAttributeMap<String,Object> - Parameters:
name- 削除する属性名
-