public class RedirectAttributesModelMap extends ModelMap implements RedirectAttributes
DataBinder
を使用して文字列として値をフォーマットする RedirectAttributes
の ModelMap
実装。また、リダイレクト属性に格納する場所を提供します。これにより、リダイレクト URL に埋め込む必要なくリダイレクトを生き残ることができます。AbstractMap.SimpleEntrySE<KSE, VSE>, AbstractMap.SimpleImmutableEntrySE<KSE, VSE>
コンストラクターと説明 |
---|
RedirectAttributesModelMap() DataBinder なしのデフォルトコンストラクター。 |
RedirectAttributesModelMap(DataBinder dataBinder) DataBinder を持つコンストラクター。 |
修飾子と型 | メソッドと説明 |
---|---|
RedirectAttributesModelMap | addAllAttributes(CollectionSE<?> attributeValues) 各要素の属性名の生成を使用して、提供された Collection のすべての属性をこの Map にコピーします。 |
RedirectAttributesModelMap | addAllAttributes(MapSE<StringSE,?> attributes) 指定された Map のすべての属性をこの Map にコピーします。 |
RedirectAttributesModelMap | addAttribute(ObjectSE attributeValue) generated name を使用して、この Map に提供された属性を追加します。 |
RedirectAttributesModelMap | addAttribute(StringSE attributeName, ObjectSE attributeValue) 指定された名前に指定された属性を追加します。 |
RedirectAttributes | addFlashAttribute(ObjectSE attributeValue) generated name を使用して、指定されたフラッシュストレージを追加します。 |
RedirectAttributes | addFlashAttribute(StringSE attributeName, ObjectSE attributeValue) 指定されたフラッシュ属性を追加します。 |
MapSE<StringSE, ObjectSE> | asMap() モデル属性の現在のセットをマップとして返します。 |
MapSE<StringSE,?> | getFlashAttributes() フラッシュストレージの属性候補または空のマップを返します。 |
RedirectAttributesModelMap | mergeAttributes(MapSE<StringSE,?> attributes) 指定された Map のすべての属性をこの Map にコピーします。同じ名前の既存のオブジェクトが優先されます(つまり |
ObjectSE | put(StringSE key, ObjectSE value) |
void | putAll(MapSE<? extends StringSE,? extends ObjectSE> map) |
containsAttribute, getAttribute
clearSE, containsValueSE, entrySetSE, forEachSE, getSE, getOrDefaultSE, keySetSE, removeEldestEntrySE, replaceAllSE, valuesSE
cloneSE, computeSE, computeIfAbsentSE, computeIfPresentSE, containsKeySE, isEmptySE, mergeSE, putIfAbsentSE, removeSE, removeSE, replaceSE, replaceSE, sizeSE
equalsSE, hashCodeSE, toStringSE
finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
containsAttribute, getAttribute
computeSE, computeIfAbsentSE, computeIfPresentSE, containsKeySE, equalsSE, hashCodeSE, isEmptySE, mergeSE, putIfAbsentSE, removeSE, removeSE, replaceSE, replaceSE, sizeSE
public RedirectAttributesModelMap()
AbstractMap.toString()
SE を介して文字列に変換されます。public RedirectAttributesModelMap(@Nullable DataBinder dataBinder)
dataBinder
- 属性値を文字列としてフォーマットするために使用されます public MapSE<StringSE,?> getFlashAttributes()
RedirectAttributes
の getFlashAttributes
public RedirectAttributesModelMap addAttribute(StringSE attributeName, @Nullable ObjectSE attributeValue)
追加する前に、属性値を文字列としてフォーマットします。
Model
の addAttribute
RedirectAttributes
の addAttribute
ModelMap
の addAttribute
attributeName
- モデル属性の名前 (非 null
)attributeValue
- モデル属性値 (null
にすることができます)public RedirectAttributesModelMap addAttribute(ObjectSE attributeValue)
generated name
を使用して、この Map
に提供された属性を追加します。 メモ: 真の規則名を正しく判別できないため、このメソッドを使用する場合、空の Collections
SE はモデルに追加されません。ビューコードは、JSTL タグによってすでに行われているように、空のコレクションではなく null
をチェックする必要があります。
追加する前に、属性値を文字列としてフォーマットします。
Model
の addAttribute
RedirectAttributes
の addAttribute
ModelMap
の addAttribute
attributeValue
- モデル属性値 (非 null
)public RedirectAttributesModelMap addAllAttributes(@Nullable CollectionSE<?> attributeValues)
Collection
のすべての属性をこの Map
にコピーします。各属性値は、追加される前に文字列としてフォーマットされます。
Model
の addAllAttributes
RedirectAttributes
の addAllAttributes
ModelMap
の addAllAttributes
ModelMap.addAttribute(Object)
public RedirectAttributesModelMap addAllAttributes(@Nullable MapSE<StringSE,?> attributes)
Map
のすべての属性をこの Map
にコピーします。各属性値は、追加される前に文字列としてフォーマットされます。
Model
の addAllAttributes
ModelMap
の addAllAttributes
ModelMap.addAttribute(String, Object)
public RedirectAttributesModelMap mergeAttributes(@Nullable MapSE<StringSE,?> attributes)
Map
のすべての属性をこの Map
にコピーします。同じ名前の既存のオブジェクトが優先されます(つまり、置き換えられません)。各属性値は、マージされる前に文字列としてフォーマットされます。
Model
の mergeAttributes
RedirectAttributes
の mergeAttributes
ModelMap
の mergeAttributes
public void putAll(@Nullable MapSE<? extends StringSE,? extends ObjectSE> map)
各値は、追加される前に文字列としてフォーマットされます。
public RedirectAttributes addFlashAttribute(StringSE attributeName, @Nullable ObjectSE attributeValue)
RedirectAttributes
RedirectAttributes
の addFlashAttribute
attributeName
- 属性名 ; 決して null
attributeValue
- 属性値。null
の場合があります public RedirectAttributes addFlashAttribute(ObjectSE attributeValue)
RedirectAttributes
generated name
を使用して、指定されたフラッシュストレージを追加します。RedirectAttributes
の addFlashAttribute
attributeValue
- フラッシュ属性値。非 null