- java.lang.Object
-
- javax.faces.context.Flash
-
- javax.faces.context.FlashWrapper
-
- All Implemented Interfaces:
- Map<String,Object>, FacesWrapper<Flash>
public abstract class FlashWrapper extends Flash implements FacesWrapper<Flash>
Provides a simple implementation of
Flash
that can be subclassed by developers wishing to provide specialized behavior to an existingFlash
instance. The default implementation of all methods is to call through to the wrappedFlash
.Usage: extend this class and override
getWrapped()
to return the instance we are wrapping.- Since:
- 2.2
-
-
Field Summary
-
Fields inherited from class javax.faces.context.Flash
NULL_VALUE
-
-
Constructor Summary
Constructors Constructor and Description FlashWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description void
clear()
The default behavior of this method is to call
Map.clear()
on the wrappedFlash
object.boolean
containsKey(Object key)
The default behavior of this method is to call
Map.containsKey(Object)
on the wrappedFlash
object.boolean
containsValue(Object value)
The default behavior of this method is to call
Map.containsValue(Object)
on the wrappedFlash
object.void
doPostPhaseActions(FacesContext ctx)
The default behavior of this method is to call
Flash.doPostPhaseActions(FacesContext)
on the wrappedFlash
object.void
doPrePhaseActions(FacesContext ctx)
The default behavior of this method is to call
Flash.doPrePhaseActions(FacesContext)
on the wrappedFlash
object.Set<Map.Entry<String,Object>>
entrySet()
The default behavior of this method is to call
Map.entrySet()
on the wrappedFlash
object.Object
get(Object key)
The default behavior of this method is to call
Map.get(Object)
on the wrappedFlash
object.abstract Flash
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.
boolean
isEmpty()
The default behavior of this method is to call
Map.isEmpty()
on the wrappedFlash
object.boolean
isKeepMessages()
The default behavior of this method is to call
Flash.isKeepMessages()
on the wrappedFlash
object.boolean
isRedirect()
The default behavior of this method is to call
Flash.isRedirect()
on the wrappedFlash
object.void
keep(String key)
The default behavior of this method is to call
Flash.keep(String)
on the wrappedFlash
object.Set<String>
keySet()
The default behavior of this method is to call
Map.keySet()
on the wrappedFlash
object.Object
put(String key, Object value)
The default behavior of this method is to call
Map.put(K, V)
on the wrappedFlash
object.void
putAll(Map<? extends String,? extends Object> m)
The default behavior of this method is to call
Map.putAll(Map)
on the wrappedFlash
object.void
putNow(String key, Object value)
The default behavior of this method is to call
Flash.putNow(String, Object)
on the wrappedFlash
object.Object
remove(Object key)
The default behavior of this method is to call
Map.remove(Object)
on the wrappedFlash
object.void
setKeepMessages(boolean newValue)
The default behavior of this method is to call
Flash.setKeepMessages(boolean)
on the wrappedFlash
object.void
setRedirect(boolean newValue)
The default behavior of this method is to call
Flash.setRedirect(boolean)
on the wrappedFlash
object.int
size()
The default behavior of this method is to call
Map.size()
on the wrappedFlash
object.Collection<Object>
values()
The default behavior of this method is to call
Map.values()
on the wrappedFlash
object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getWrapped
public abstract Flash getWrapped()
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrapped
in interfaceFacesWrapper<Flash>
-
doPostPhaseActions
public void doPostPhaseActions(FacesContext ctx)
The default behavior of this method is to call
Flash.doPostPhaseActions(FacesContext)
on the wrappedFlash
object.- Specified by:
doPostPhaseActions
in classFlash
- Parameters:
ctx
- theFacesContext
for this request.- Since:
- 2.2
-
doPrePhaseActions
public void doPrePhaseActions(FacesContext ctx)
The default behavior of this method is to call
Flash.doPrePhaseActions(FacesContext)
on the wrappedFlash
object.- Specified by:
doPrePhaseActions
in classFlash
- Parameters:
ctx
- theFacesContext
for this request.- Since:
- 2.2
-
isKeepMessages
public boolean isKeepMessages()
The default behavior of this method is to call
Flash.isKeepMessages()
on the wrappedFlash
object.- Specified by:
isKeepMessages
in classFlash
- Since:
- 2.2
-
isRedirect
public boolean isRedirect()
The default behavior of this method is to call
Flash.isRedirect()
on the wrappedFlash
object.- Specified by:
isRedirect
in classFlash
- Since:
- 2.2
-
keep
public void keep(String key)
The default behavior of this method is to call
Flash.keep(String)
on the wrappedFlash
object.- Specified by:
keep
in classFlash
- Parameters:
key
- if argumentkey
is the name of an entry previously stored to the flash on this traversal through the lifecycle via a call toFlash.putNow(java.lang.String, java.lang.Object)
, or to a set to the EL expression#{flash.now.<key>}
, or to the requestMap
, to be promoted to the flash as if a call toput()
or a set to the expression#{flash.<key>}
was being called.- Since:
- 2.2
-
putNow
public void putNow(String key, Object value)
The default behavior of this method is to call
Flash.putNow(String, Object)
on the wrappedFlash
object.
-
setKeepMessages
public void setKeepMessages(boolean newValue)
The default behavior of this method is to call
Flash.setKeepMessages(boolean)
on the wrappedFlash
object.- Specified by:
setKeepMessages
in classFlash
- Parameters:
newValue
- the new value for this property on this session.- Since:
- 2.2
-
setRedirect
public void setRedirect(boolean newValue)
The default behavior of this method is to call
Flash.setRedirect(boolean)
on the wrappedFlash
object.- Specified by:
setRedirect
in classFlash
- Parameters:
newValue
- the new value for this property on this session.- Since:
- 2.2
-
clear
public void clear()
The default behavior of this method is to call
Map.clear()
on the wrappedFlash
object.
-
containsKey
public boolean containsKey(Object key)
The default behavior of this method is to call
Map.containsKey(Object)
on the wrappedFlash
object.- Specified by:
containsKey
in interfaceMap<String,Object>
- Since:
- 2.2
-
containsValue
public boolean containsValue(Object value)
The default behavior of this method is to call
Map.containsValue(Object)
on the wrappedFlash
object.- Specified by:
containsValue
in interfaceMap<String,Object>
- Since:
- 2.2
-
entrySet
public Set<Map.Entry<String,Object>> entrySet()
The default behavior of this method is to call
Map.entrySet()
on the wrappedFlash
object.
-
get
public Object get(Object key)
The default behavior of this method is to call
Map.get(Object)
on the wrappedFlash
object.
-
isEmpty
public boolean isEmpty()
The default behavior of this method is to call
Map.isEmpty()
on the wrappedFlash
object.
-
keySet
public Set<String> keySet()
The default behavior of this method is to call
Map.keySet()
on the wrappedFlash
object.
-
put
public Object put(String key, Object value)
The default behavior of this method is to call
Map.put(K, V)
on the wrappedFlash
object.
-
putAll
public void putAll(Map<? extends String,? extends Object> m)
The default behavior of this method is to call
Map.putAll(Map)
on the wrappedFlash
object.
-
remove
public Object remove(Object key)
The default behavior of this method is to call
Map.remove(Object)
on the wrappedFlash
object.
-
size
public int size()
The default behavior of this method is to call
Map.size()
on the wrappedFlash
object.
-
values
public Collection<Object> values()
The default behavior of this method is to call
Map.values()
on the wrappedFlash
object.
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/faces/context/FlashWrapper.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.