クラス RedirectAttributesModelMap
java.lang.ObjectSE
java.util.AbstractMapSE<K,V>
java.util.HashMapSE<K,V>
java.util.LinkedHashMapSE<StringSE,ObjectSE>
org.springframework.ui.ModelMap
org.springframework.web.servlet.mvc.support.RedirectAttributesModelMap
- 実装されたすべてのインターフェース:
SerializableSE
、CloneableSE
、MapSE<StringSE,
、ObjectSE> Model
、RedirectAttributes
DataBinder
を使用して文字列として値をフォーマットする RedirectAttributes
の ModelMap
実装。また、リダイレクト属性に格納する場所を提供します。これにより、リダイレクト URL に埋め込む必要なくリダイレクトを生き残ることができます。- 導入:
- 3.1
- 作成者:
- Rossen Stoyanchev
- 関連事項:
ネストされたクラスのサマリー
クラス java.util.AbstractMapSE から継承されたネストクラス / インターフェース
AbstractMap.SimpleEntrySE<KSE extends ObjectSE,
VSE extends ObjectSE>, AbstractMap.SimpleImmutableEntrySE<KSE extends ObjectSE, VSE extends ObjectSE> コンストラクターのサマリー
コンストラクター説明DataBinder なしのデフォルトコンストラクター。RedirectAttributesModelMap
(DataBinder dataBinder) DataBinder を持つコンストラクター。メソッドのサマリー
修飾子と型メソッド説明addAllAttributes
(CollectionSE<?> attributeValues) 各要素の属性名の生成を使用して、提供されたCollection
のすべての属性をこのMap
にコピーします。addAllAttributes
(MapSE<StringSE, ?> attributes) 指定されたMap
のすべての属性をこのMap
にコピーします。addAttribute
(ObjectSE attributeValue) generated name
を使用して、このMap
に提供された属性を追加します。addAttribute
(StringSE attributeName, ObjectSE attributeValue) 指定された名前に指定された属性を追加します。addFlashAttribute
(ObjectSE attributeValue) generated name
を使用して、指定されたフラッシュストレージを追加します。addFlashAttribute
(StringSE attributeName, ObjectSE attributeValue) 指定されたフラッシュ属性を追加します。asMap()
モデル属性の現在のセットをマップとして返します。フラッシュストレージの属性候補または空のマップを返します。mergeAttributes
(MapSE<StringSE, ?> attributes) 指定されたMap
のすべての属性をこのMap
にコピーします。同じ名前の既存のオブジェクトが優先されます(つまりvoid
クラス org.springframework.ui.ModelMap から継承されたメソッド
containsAttribute, getAttribute
クラス java.util.LinkedHashMapSE から継承されたメソッド
clear, containsValueSE, entrySet, forEachSE, getSE, getOrDefaultSE, keySet, removeEldestEntrySE, replaceAllSE, values
クラス java.util.HashMapSE から継承されたメソッド
clone, computeSE, computeIfAbsentSE, computeIfPresentSE, containsKeySE, isEmpty, mergeSE, putIfAbsentSE, removeSE, removeSE, replaceSE, replaceSE, size
クラス java.util.AbstractMapSE から継承されたメソッド
equalsSE, hashCode, toString
インターフェース java.util.MapSE から継承されたメソッド
computeSE, computeIfAbsentSE, computeIfPresentSE, containsKeySE, equalsSE, hashCode, isEmpty, mergeSE, putIfAbsentSE, removeSE, removeSE, replaceSE, replaceSE, size
インターフェース org.springframework.ui.Model から継承されたメソッド
containsAttribute, getAttribute
コンストラクターの詳細
RedirectAttributesModelMap
public RedirectAttributesModelMap()DataBinder なしのデフォルトコンストラクター。属性値はAbstractMap.toString()
を介して文字列に変換されます。RedirectAttributesModelMap
DataBinder を持つコンストラクター。- パラメーター:
dataBinder
- 属性値を文字列としてフォーマットするために使用されます
メソッドの詳細
getFlashAttributes
フラッシュストレージの属性候補または空のマップを返します。- 次で指定:
- インターフェース
RedirectAttributes
のgetFlashAttributes
addAttribute
public RedirectAttributesModelMap addAttribute(StringSE attributeName, @Nullable ObjectSE attributeValue) 指定された名前に指定された属性を追加します。追加する前に、属性値を文字列としてフォーマットします。
- 次で指定:
- インターフェース
Model
のaddAttribute
- 次で指定:
- インターフェース
RedirectAttributes
のaddAttribute
- オーバーライド:
- クラス
ModelMap
のaddAttribute
- パラメーター:
attributeName
- モデル属性の名前 (非null
)attributeValue
- モデル属性値 (null
にすることができます)
addAttribute
generated name
を使用して、このMap
に提供された属性を追加します。メモ: 真の規則名を正しく判別できないため、このメソッドを使用する場合、空の
Collections
SE はモデルに追加されません。ビューコードは、JSTL タグによってすでに行われているように、空のコレクションではなくnull
をチェックする必要があります。追加する前に、属性値を文字列としてフォーマットします。
- 次で指定:
- インターフェース
Model
のaddAttribute
- 次で指定:
- インターフェース
RedirectAttributes
のaddAttribute
- オーバーライド:
- クラス
ModelMap
のaddAttribute
- パラメーター:
attributeValue
- モデル属性値 (非null
)
addAllAttributes
各要素の属性名の生成を使用して、提供されたCollection
のすべての属性をこのMap
にコピーします。各属性値は、追加される前に文字列としてフォーマットされます。
- 次で指定:
- インターフェース
Model
のaddAllAttributes
- 次で指定:
- インターフェース
RedirectAttributes
のaddAllAttributes
- オーバーライド:
- クラス
ModelMap
のaddAllAttributes
- 関連事項:
addAllAttributes
指定されたMap
のすべての属性をこのMap
にコピーします。各属性値は、追加される前に文字列としてフォーマットされます。
- 次で指定:
- インターフェース
Model
のaddAllAttributes
- オーバーライド:
- クラス
ModelMap
のaddAllAttributes
- 関連事項:
mergeAttributes
指定されたMap
のすべての属性をこのMap
にコピーします。同じ名前の既存のオブジェクトが優先されます(つまり、置き換えられません)。各属性値は、マージされる前に文字列としてフォーマットされます。
- 次で指定:
- インターフェース
Model
のmergeAttributes
- 次で指定:
- インターフェース
RedirectAttributes
のmergeAttributes
- オーバーライド:
- クラス
ModelMap
のmergeAttributes
asMap
インターフェースからコピーされた説明:Model
モデル属性の現在のセットをマップとして返します。put
値は、追加される前に文字列としてフォーマットされます。
putAll
各値は、追加される前に文字列としてフォーマットされます。
addFlashAttribute
public RedirectAttributes addFlashAttribute(StringSE attributeName, @Nullable ObjectSE attributeValue) インターフェースからコピーされた説明:RedirectAttributes
指定されたフラッシュ属性を追加します。- 次で指定:
- インターフェース
RedirectAttributes
のaddFlashAttribute
- パラメーター:
attributeName
- 属性名 ; 決してnull
attributeValue
- 属性値。null
の場合があります
addFlashAttribute
インターフェースからコピーされた説明:RedirectAttributes
generated name
を使用して、指定されたフラッシュストレージを追加します。- 次で指定:
- インターフェース
RedirectAttributes
のaddFlashAttribute
- パラメーター:
attributeValue
- フラッシュ属性値。非null