|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FlashMapManager
A strategy interface for storing, retrieving, and managing FlashMap
instances. See FlashMap for a general overview of flash attributes.
A FlashMapManager is invoked at the beginning and at the end of requests.
For each request it retrieves an "input" FlashMap with attributes passed
from a previous request (if any) and creates an "output" FlashMap with
attributes to pass to a subsequent request. "Input" and "output" FlashMap
instances are exposed as request attributes and are accessible via methods
in org.springframework.web.servlet.support.RequestContextUtils.
Annotated controllers will usually not use this FlashMap directly.
See org.springframework.web.servlet.mvc.support.RedirectAttributes.
FlashMap| Field Summary | |
|---|---|
static String |
INPUT_FLASH_MAP_ATTRIBUTE
Name of request attribute that holds a read-only Map<String, Object> with "input" flash attributes if any. |
static String |
OUTPUT_FLASH_MAP_ATTRIBUTE
Name of request attribute that holds the "output" FlashMap with
attributes to save for a subsequent request. |
| Method Summary | |
|---|---|
void |
requestCompleted(HttpServletRequest request)
Start the expiration period of the "output" FlashMap save it in the underlying storage. |
void |
requestStarted(HttpServletRequest request)
Perform the following tasks unless the OUTPUT_FLASH_MAP_ATTRIBUTE
request attribute exists:
Find the "input" FlashMap, expose it under the request attribute
INPUT_FLASH_MAP_ATTRIBUTE, and remove it from underlying storage. |
| Field Detail |
|---|
static final String INPUT_FLASH_MAP_ATTRIBUTE
Map<String, Object> with "input" flash attributes if any.
RequestContextUtils.getInputFlashMap(HttpServletRequest)static final String OUTPUT_FLASH_MAP_ATTRIBUTE
FlashMap with
attributes to save for a subsequent request.
RequestContextUtils.getOutputFlashMap(HttpServletRequest)| Method Detail |
|---|
void requestStarted(HttpServletRequest request)
OUTPUT_FLASH_MAP_ATTRIBUTE
request attribute exists:
INPUT_FLASH_MAP_ATTRIBUTE, and remove it from underlying storage.
OUTPUT_FLASH_MAP_ATTRIBUTE.
request - the current requestvoid requestCompleted(HttpServletRequest request)
The "output" FlashMap should not be saved if it is empty or if it was not created by the current FlashMapManager instance.
request - the current request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||