FlashMapManager implementations.
| Modifier and Type | Field and Description |
|---|---|
| private static final Object | |
| private int | |
| protected final Log | |
| private UrlPathHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private List | getExpiredFlashMaps(List<FlashMap> allMaps)
Return a list of expired FlashMap instances contained in the given list. |
| protected Object | Returns: the mutex to use (may benull if none applicable)the current request request)Obtain a mutex for modifying the FlashMap List as handled by
The default implementation returns a shared static mutex. |
| public int | |
| private FlashMap | Returns: a matching FlashMap ornullReturn a FlashMap contained in the given list that matches the request. |
| private MultiValueMap | |
| public UrlPathHelper | |
| protected boolean | isFlashMapForRequest(FlashMap flashMap, HttpServletRequest request)
Whether the given FlashMap matches the current request. |
| public final FlashMap | retrieveAndUpdate(HttpServletRequest
the current request request, HttpServletResponse the current response response)Implements org. Find a FlashMap saved by a previous request that matches to the current request, remove it from underlying storage, and also remove other expired FlashMap instances. |
| protected abstract List | Returns: a List with FlashMap instances, ornull if none foundthe current request request)Retrieve saved FlashMap instances from the underlying storage. |
| public final void | saveOutputFlashMap(FlashMap
the FlashMap to save flashMap, HttpServletRequest the current request request, HttpServletResponse the current response response)Implements org. Save the given FlashMap, in some underlying storage and set the start of its expiration period. |
| public void | setFlashMapTimeout(int flashMapTimeout)
Set the amount of time in seconds after a |
| public void | setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to use to match FlashMap instances to requests. |
| protected abstract void | updateFlashMaps(List<FlashMap>
a (potentially empty) list of FlashMap instances to save flashMaps, HttpServletRequest the current request request, HttpServletResponse the current response response)Update the FlashMap instances in the underlying storage. |
| DEFAULT_FLASH_MAPS_MUTEX | back to summary |
|---|---|
| private static final Object DEFAULT_FLASH_MAPS_MUTEX | |
| flashMapTimeout | back to summary |
|---|---|
| private int flashMapTimeout | |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| urlPathHelper | back to summary |
|---|---|
| private UrlPathHelper urlPathHelper | |
| AbstractFlashMapManager | back to summary |
|---|---|
| public AbstractFlashMapManager() | |
| decodeAndNormalizePath | back to summary |
|---|---|
private String decodeAndNormalizePath(String path, HttpServletRequest request)
| |
| getExpiredFlashMaps | back to summary |
|---|---|
| private List Return a list of expired FlashMap instances contained in the given list. | |
| getFlashMapsMutex | back to summary |
|---|---|
| protected Object getFlashMapsMutex(HttpServletRequest request) Obtain a mutex for modifying the FlashMap List as handled by
The default implementation returns a shared static mutex.
Subclasses are encouraged to return a more specific mutex, or
| |
| getFlashMapTimeout | back to summary |
|---|---|
| public int getFlashMapTimeout() Return the amount of time in seconds before a FlashMap expires. | |
| getMatchingFlashMap | back to summary |
|---|---|
| private FlashMap getMatchingFlashMap(List<FlashMap> allMaps, HttpServletRequest request) Return a FlashMap contained in the given list that matches the request. | |
| getOriginatingRequestParams | back to summary |
|---|---|
| private MultiValueMap | |
| getUrlPathHelper | back to summary |
|---|---|
| public UrlPathHelper getUrlPathHelper() Return the UrlPathHelper implementation to use. | |
| isFlashMapForRequest | back to summary |
|---|---|
| protected boolean isFlashMapForRequest(FlashMap flashMap, HttpServletRequest request) Whether the given FlashMap matches the current request. Uses the expected request path and query parameters saved in the FlashMap. | |
| retrieveAndUpdate | back to summary |
|---|---|
| public final FlashMap retrieveAndUpdate(HttpServletRequest request, HttpServletResponse response) Implements org. Doc from org. Find a FlashMap saved by a previous request that matches to the current request, remove it from underlying storage, and also remove other expired FlashMap instances. This method is invoked in the beginning of every request in contrast
to
| |
| retrieveFlashMaps | back to summary |
|---|---|
| protected abstract List Retrieve saved FlashMap instances from the underlying storage.
| |
| saveOutputFlashMap | back to summary |
|---|---|
| public final void saveOutputFlashMap(FlashMap flashMap, HttpServletRequest request, HttpServletResponse response) Implements org. Doc from org. Save the given FlashMap, in some underlying storage and set the start of its expiration period. Note Invoke this method prior to a redirect in order to allow saving the FlashMap in the HTTP session or in a response cookie before the response is committed.
| |
| setFlashMapTimeout | back to summary |
|---|---|
| public void setFlashMapTimeout(int flashMapTimeout) Set the amount of time in seconds after a The default value is 180 seconds. | |
| setUrlPathHelper | back to summary |
|---|---|
| public void setUrlPathHelper(UrlPathHelper urlPathHelper) Set the UrlPathHelper to use to match FlashMap instances to requests. | |
| updateFlashMaps | back to summary |
|---|---|
| protected abstract void updateFlashMaps(List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response) Update the FlashMap instances in the underlying storage.
| |