|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.xwork.FlashScope
public class FlashScope
Flash Scope allows one request to pass data to the next request if it's a redirect.
FlashScope only becomes available if the redirect action result is specified as "redirectwithflash" (check xwork.xml)
In a REST request, need to call persist() and getFlashScopeUrl(String, String) to persist and build the URL that supports FlashScope
| Constructor Summary | |
|---|---|
FlashScope()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
get(java.lang.String key)
Retrieves FlashScope items stored in the previous request |
static java.lang.String |
getFlashScopeUrl(java.lang.String url,
java.lang.String flashId)
Decorate an URL with FlashScope information. |
static boolean |
has(java.lang.String key)
|
static java.lang.String |
persist()
Persist FlashScope values recorded so far in the current request using put(String, Object) |
static void |
put(java.lang.String key,
java.lang.Object value)
Adds things to the FlashScope. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlashScope()
| Method Detail |
|---|
public static void put(java.lang.String key,
java.lang.Object value)
public static java.lang.Object get(java.lang.String key)
public static boolean has(java.lang.String key)
public static java.lang.String getFlashScopeUrl(java.lang.String url,
java.lang.String flashId)
RedirectWithFlashResult
url - a normal url without FlashScope information yetflashId - FlashScope information
public static java.lang.String persist()
put(String, Object)
getFlashScopeUrl(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||