Package nablarch.fw.web.servlet
Class RequestAttributeMap
HttpServletRequestオブジェクトに対してMapインターフェースを与えるラッパー。-
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
ConstructorsConstructorDescriptionRequestAttributeMap(jakarta.servlet.http.HttpServletRequest request) HTTPサーブレットリクエストに対するMapインターフェースへのラッパーを作成する。 -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) 指定した属性名に対応する属性値を取得する。属性名のイテレータを取得する。voidremoveAttribute(String name) 指定された属性を削除する。voidsetAttribute(String name, Object value) 属性名に対応する属性値を設定する。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
-
RequestAttributeMap
public RequestAttributeMap(jakarta.servlet.http.HttpServletRequest request) HTTPサーブレットリクエストに対するMapインターフェースへのラッパーを作成する。- Parameters:
request- HTTPサーブレットリクエストオブジェクト
-
-
Method Details
-
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- 削除する属性名
-