@ExcludeFromManagedRequestScope public class RequestStateMap extends HashMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
static RequestStateMap |
getInstance(javax.faces.context.ExternalContext ec)
Returns an instance of the RequestStateMap.
|
static RequestStateMap |
getInstance(javax.servlet.ServletRequest req)
Returns an instance of the RequestStateMap.
|
void |
saveState(javax.faces.context.ExternalContext ec)
Saves the current state to the session.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public static RequestStateMap getInstance(javax.servlet.ServletRequest req)
req
- a servletRequestpublic static RequestStateMap getInstance(javax.faces.context.ExternalContext ec)
saveState(ExternalContext)
. If no state was saved, then it will create a new
map and return it.
Please keep in mind that regardless of whether a map was already present on the request or not, executing this method
will ALWAYS clear any state which might have been saved to the session. This is what enforces the "single restore"
type functionality.ec
- an ExternalContextpublic void saveState(javax.faces.context.ExternalContext ec)
ec
- the ExternalContext to save the stateMap to.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.