|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.context.Flash
javax.faces.context.FlashWrapper
public abstract class FlashWrapper
Provides a simple implementation of
Flash that can be subclassed by developers wishing
to provide specialized behavior to an existing Flash instance. The default implementation of all methods
is to call through to the wrapped Flash.
Usage: extend this class and override getWrapped() to
return the instance we are wrapping.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class javax.faces.context.Flash |
|---|
NULL_VALUE |
| Constructor Summary | |
|---|---|
FlashWrapper()
|
|
| Method Summary | |
|---|---|
void |
clear()
The default behavior of this method
is to call |
boolean |
containsKey(Object key)
The default behavior of this method
is to call |
boolean |
containsValue(Object value)
The default behavior of this method
is to call |
void |
doPostPhaseActions(FacesContext ctx)
The default behavior of this method
is to call |
void |
doPrePhaseActions(FacesContext ctx)
The default behavior of this method
is to call |
Set<Map.Entry<String,Object>> |
entrySet()
The default behavior of this method
is to call |
Object |
get(Object key)
The default behavior of this method
is to call |
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 |
boolean |
isKeepMessages()
The default behavior of this method
is to call |
boolean |
isRedirect()
The default behavior of this method
is to call |
void |
keep(String key)
The default behavior of this method
is to call |
Set<String> |
keySet()
The default behavior of this method
is to call |
Object |
put(String key,
Object value)
The default behavior of this method
is to call |
void |
putAll(Map<? extends String,? extends Object> m)
The default behavior of this method
is to call |
void |
putNow(String key,
Object value)
The default behavior of this method
is to call |
Object |
remove(Object key)
The default behavior of this method
is to call |
void |
setKeepMessages(boolean newValue)
The default behavior of this method
is to call |
void |
setRedirect(boolean newValue)
The default behavior of this method
is to call |
int |
size()
The default behavior of this method
is to call |
Collection<Object> |
values()
The default behavior of this method
is to call |
| 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 |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public FlashWrapper()
| Method Detail |
|---|
public abstract Flash getWrapped()
FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
getWrapped in interface FacesWrapper<Flash>public void doPostPhaseActions(FacesContext ctx)
The default behavior of this method
is to call Flash.doPostPhaseActions(FacesContext) on the
wrapped Flash object.
doPostPhaseActions in class Flashctx - the FacesContext for this request.public void doPrePhaseActions(FacesContext ctx)
The default behavior of this method
is to call Flash.doPrePhaseActions(FacesContext) on the
wrapped Flash object.
doPrePhaseActions in class Flashctx - the FacesContext for this request.public boolean isKeepMessages()
The default behavior of this method
is to call Flash.isKeepMessages() on the wrapped
Flash object.
isKeepMessages in class Flashpublic boolean isRedirect()
The default behavior of this method
is to call Flash.isRedirect() on the wrapped Flash
object.
isRedirect in class Flashpublic void keep(String key)
The default behavior of this method
is to call Flash.keep(String) on the wrapped Flash
object.
keep in class Flashkey - if argument key is the name of an entry
previously stored to the flash on this traversal through the
lifecycle via a call to Flash.putNow(java.lang.String, java.lang.Object), or to a set to the EL
expression #{flash.now.<key>}, or to the
request Map, to be promoted to the flash as if a call
to put() or a set to the expression
#{flash.<key>} was being called.
public void putNow(String key,
Object value)
The default behavior of this method
is to call Flash.putNow(String, Object) on the wrapped
Flash object.
putNow in class Flashkey - the key for this entryvalue - the value for this entrypublic void setKeepMessages(boolean newValue)
The default behavior of this method
is to call Flash.setKeepMessages(boolean) on the wrapped
Flash object.
setKeepMessages in class FlashnewValue - the new value for this property on this session.public void setRedirect(boolean newValue)
The default behavior of this method
is to call Flash.setRedirect(boolean) on the wrapped
Flash object.
setRedirect in class FlashnewValue - the new value for this property on this session.public void clear()
The default behavior of this method
is to call Map.clear() on the wrapped Flash
object.
clear in interface Map<String,Object>public boolean containsKey(Object key)
The default behavior of this method
is to call Map.containsKey(Object) on the wrapped
Flash object.
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
The default behavior of this method
is to call Map.containsValue(Object) on the wrapped
Flash object.
containsValue in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
The default behavior of this method
is to call Map.entrySet() on the wrapped Flash
object.
entrySet in interface Map<String,Object>public Object get(Object key)
The default behavior of this method
is to call Map.get(Object) on the wrapped Flash
object.
get in interface Map<String,Object>public boolean isEmpty()
The default behavior of this method
is to call Map.isEmpty() on the wrapped Flash
object.
isEmpty in interface Map<String,Object>public Set<String> keySet()
The default behavior of this method
is to call Map.keySet() on the wrapped Flash
object.
keySet in interface Map<String,Object>
public Object put(String key,
Object value)
The default behavior of this method
is to call Map.put(K, V) on the wrapped
Flash object.
put in interface Map<String,Object>public void putAll(Map<? extends String,? extends Object> m)
The default behavior of this method
is to call Map.putAll(Map) on the wrapped
Flash object.
putAll in interface Map<String,Object>public Object remove(Object key)
The default behavior of this method
is to call Map.remove(Object) on the wrapped
Flash object.
remove in interface Map<String,Object>public int size()
The default behavior of this method
is to call Map.size() on the wrapped Flash
object.
size in interface Map<String,Object>public Collection<Object> values()
The default behavior of this method
is to call Map.values() on the wrapped Flash
object.
values in interface Map<String,Object>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||