|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.context.Flash
org.apache.myfaces.shared.context.flash.FlashImpl
public class FlashImpl
Implementation of Flash object
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 | |
---|---|
FlashImpl(ExternalContext externalContext)
|
Method Summary | |
---|---|
void |
clear()
|
void |
clearFlashMap(FacesContext facesContext,
String clientWindowId,
String token)
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
void |
doPostPhaseActions(FacesContext facesContext)
Used to destroy the executeMap and to save all FacesMessages for the next request, but only if this is the last invocation of this method in the current lifecycle (if redirect phase 5, otherwise phase 6). |
void |
doPrePhaseActions(FacesContext facesContext)
Used to restore the redirect value and the FacesMessages of the previous request and to manage the flashMap tokens for this request before phase restore view starts. |
Set<Map.Entry<String,Object>> |
entrySet()
|
Object |
get(Object key)
|
static Flash |
getCurrentInstance(ExternalContext context)
Return a Flash instance from the application map |
static Flash |
getCurrentInstance(ExternalContext context,
boolean create)
|
protected org.apache.myfaces.shared.context.flash.FlashClientWindowTokenCollection |
getFlashClientWindowTokenCollection(ExternalContext externalContext,
boolean create)
|
boolean |
isEmpty()
|
boolean |
isKeepMessages()
Returns the value of a previous call to setKeepMessages() from this request. |
boolean |
isRedirect()
Return the value of this property for the flash for this session. |
void |
keep(String key)
Take a value from the requestMap, or if it does not exist from the execute FlashMap, and put it on the render FlashMap, so it is visible on the next request. |
Set<String> |
keySet()
|
Object |
put(String key,
Object value)
|
void |
putAll(Map<? extends String,? extends Object> m)
|
void |
putNow(String key,
Object value)
This is just an alias for the request scope map. |
Object |
remove(Object key)
|
void |
setKeepMessages(boolean keepMessages)
If this property is true, the messages should be kept for the next request, no matter if it is a normal postback case or a POST- REDIRECT-GET case. |
void |
setRedirect(boolean redirect)
|
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 |
---|
equals, hashCode |
Constructor Detail |
---|
public FlashImpl(ExternalContext externalContext)
Method Detail |
---|
public static Flash getCurrentInstance(ExternalContext context)
context
-
public static Flash getCurrentInstance(ExternalContext context, boolean create)
public void doPrePhaseActions(FacesContext facesContext)
doPrePhaseActions
in class Flash
public void doPostPhaseActions(FacesContext facesContext)
doPostPhaseActions
in class Flash
public boolean isRedirect()
isRedirect
in class Flash
public void setRedirect(boolean redirect)
setRedirect
in class Flash
public void keep(String key)
keep
in class Flash
public void putNow(String key, Object value)
putNow
in class Flash
public boolean isKeepMessages()
isKeepMessages
in class Flash
public void setKeepMessages(boolean keepMessages)
setKeepMessages
in class Flash
public void clear()
clear
in interface Map<String,Object>
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public Set<Map.Entry<String,Object>> entrySet()
entrySet
in interface Map<String,Object>
public Object get(Object key)
get
in interface Map<String,Object>
public boolean isEmpty()
isEmpty
in interface Map<String,Object>
public Set<String> keySet()
keySet
in interface Map<String,Object>
public Object put(String key, Object value)
put
in interface Map<String,Object>
public void putAll(Map<? extends String,? extends Object> m)
putAll
in interface Map<String,Object>
public Object remove(Object key)
remove
in interface Map<String,Object>
public int size()
size
in interface Map<String,Object>
public Collection<Object> values()
values
in interface Map<String,Object>
protected org.apache.myfaces.shared.context.flash.FlashClientWindowTokenCollection getFlashClientWindowTokenCollection(ExternalContext externalContext, boolean create)
public void clearFlashMap(FacesContext facesContext, String clientWindowId, String token)
clearFlashMap
in interface ReleasableFlash
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |