Interface StaleSessionStrategy
- All Known Implementing Classes:
InvalidateSessionAndMarkRequestStrategy
public interface StaleSessionStrategy
Strategy which allows you to customize the logic when stale session was detected.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiononStaleSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Invoked when stale session was detected.
-
Method Details
-
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.
-