Interface StaleSessionStrategy
-
- All Known Implementing Classes:
InvalidateSessionAndMarkRequestStrategy
public interface StaleSessionStrategyStrategy which allows you to customize the logic when stale session was detected.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStaleSessionStrategy.Action
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StaleSessionStrategy.ActiononStaleSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Invoked when stale session was detected.
-
-
-
Method Detail
-
onStaleSession
StaleSessionStrategy.Action onStaleSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Invoked when stale session was detected. Besides the logic it is also responsible for deciding if request processing should be continued or not.- Parameters:
request- request which is currently processing.response- response which will bee returned.- Returns:
StaleSessionStrategy.Action.BREAK_REQUEST_PROCESSINGwhen processing should not continue.StaleSessionStrategy.Action.CONTINUE_REQUEST_PROCESSINGwhen processing should be continued.
-
-