public class SessionFlashMapManager extends AbstractFlashMapManager
FlashMap
instances to and from the HTTP session.logger
Constructor and Description |
---|
SessionFlashMapManager() |
Modifier and Type | Method and Description |
---|---|
protected Object |
getFlashMapsMutex(HttpServletRequest request)
Exposes the best available session mutex.
|
protected List<FlashMap> |
retrieveFlashMaps(HttpServletRequest request)
Retrieves saved FlashMap instances from the HTTP session, if any.
|
protected void |
updateFlashMaps(List<FlashMap> flashMaps,
HttpServletRequest request,
HttpServletResponse response)
Saves the given FlashMap instances in the HTTP session.
|
getFlashMapTimeout, getUrlPathHelper, isFlashMapForRequest, retrieveAndUpdate, saveOutputFlashMap, setFlashMapTimeout, setUrlPathHelper
@Nullable protected List<FlashMap> retrieveFlashMaps(HttpServletRequest request)
retrieveFlashMaps
in class AbstractFlashMapManager
request
- the current requestnull
if none foundprotected void updateFlashMaps(List<FlashMap> flashMaps, HttpServletRequest request, HttpServletResponse response)
updateFlashMaps
in class AbstractFlashMapManager
flashMaps
- a (potentially empty) list of FlashMap instances to saverequest
- the current requestresponse
- the current responseprotected Object getFlashMapsMutex(HttpServletRequest request)
getFlashMapsMutex
in class AbstractFlashMapManager
request
- the current requestnull
if none applicable)WebUtils.getSessionMutex(javax.servlet.http.HttpSession)
,
HttpSessionMutexListener