public class FlashScope extends Object
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 and Description |
---|
FlashScope() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void put(String key, Object value)
public static boolean has(String key)
public static String getFlashScopeUrl(String url, String flashId)
RedirectWithFlashResult
url
- a normal url without FlashScope information yetflashId
- FlashScope informationpublic static String persist()
put(String, Object)
getFlashScopeUrl(String, String)
Copyright © 2003–2021 Atlassian. All rights reserved.