Package jakarta.faces.context
Class FlashWrapper
- java.lang.Object
-
- jakarta.faces.context.Flash
-
- jakarta.faces.context.FlashWrapper
-
- All Implemented Interfaces:
FacesWrapper<Flash>
,Map<String,Object>
public abstract class FlashWrapper extends Flash implements FacesWrapper<Flash>
- Since:
- 2.2
-
-
Field Summary
-
Fields inherited from class jakarta.faces.context.Flash
NULL_VALUE
-
-
Constructor Summary
Constructors Constructor Description FlashWrapper()
Deprecated.FlashWrapper(Flash delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
void
doPostPhaseActions(FacesContext context)
void
doPrePhaseActions(FacesContext context)
Set<Map.Entry<String,Object>>
entrySet()
Object
get(Object key)
Flash
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.boolean
isEmpty()
boolean
isKeepMessages()
boolean
isRedirect()
void
keep(String key)
Set<String>
keySet()
Object
put(String key, Object value)
void
putAll(Map<? extends String,? extends Object> m)
void
putNow(String key, Object value)
Object
remove(Object key)
void
setKeepMessages(boolean newValue)
void
setRedirect(boolean newValue)
int
size()
Collection<Object>
values()
-
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
-
-
-
-
Constructor Detail
-
FlashWrapper
@Deprecated public FlashWrapper()
Deprecated.
-
FlashWrapper
public FlashWrapper(Flash delegate)
-
-
Method Detail
-
isKeepMessages
public boolean isKeepMessages()
- Specified by:
isKeepMessages
in classFlash
-
isRedirect
public boolean isRedirect()
- Specified by:
isRedirect
in classFlash
-
setKeepMessages
public void setKeepMessages(boolean newValue)
- Specified by:
setKeepMessages
in classFlash
-
setRedirect
public void setRedirect(boolean newValue)
- Specified by:
setRedirect
in classFlash
-
doPrePhaseActions
public void doPrePhaseActions(FacesContext context)
- Specified by:
doPrePhaseActions
in classFlash
-
doPostPhaseActions
public void doPostPhaseActions(FacesContext context)
- Specified by:
doPostPhaseActions
in classFlash
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
getWrapped
public 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>
- Returns:
- the instance of the class being wrapped
-
-