|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Object |
get(String key)
Retrieves FlashScope items stored in the previous request |
static String |
getFlashScopeUrl(String url,
String flashId)
Decorate an URL with FlashScope information. |
static boolean |
has(String key)
|
static String |
persist()
Persist FlashScope values recorded so far in the current request using put(String, Object) |
static void |
put(String key,
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(String key, Object value)
public static Object get(String key)
public static boolean has(String key)
public static String getFlashScopeUrl(String url, String flashId)
RedirectWithFlashResult
url
- a normal url without FlashScope information yetflashId
- FlashScope information
public static String persist()
put(String, Object)
getFlashScopeUrl(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |