Class SessionInformationExpiredEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.web.session.SessionInformationExpiredEvent
- All Implemented Interfaces:
Serializable
public final class SessionInformationExpiredEvent
extends org.springframework.context.ApplicationEvent
An event for when a
SessionInformation is expired.- Since:
- 4.2
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSessionInformationExpiredEvent(SessionInformation sessionInformation, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Creates a new instance.SessionInformationExpiredEvent(SessionInformation sessionInformation, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable jakarta.servlet.FilterChain filterChain) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@Nullable jakarta.servlet.FilterChainReturns the filter chain.jakarta.servlet.http.HttpServletRequestReturns the request.jakarta.servlet.http.HttpServletResponseReturns the response.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SessionInformationExpiredEvent
public SessionInformationExpiredEvent(SessionInformation sessionInformation, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Creates a new instance.- Parameters:
sessionInformation- the SessionInformation that is expiredrequest- the HttpServletRequestresponse- the HttpServletResponse
-
SessionInformationExpiredEvent
public SessionInformationExpiredEvent(SessionInformation sessionInformation, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @Nullable jakarta.servlet.FilterChain filterChain) Creates a new instance.- Parameters:
sessionInformation- the SessionInformation that is expiredrequest- the HttpServletRequestresponse- the HttpServletResponsefilterChain- the FilterChain- Since:
- 6.4
-
-
Method Details
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest()Returns the request.- Returns:
- the request
-
getResponse
public jakarta.servlet.http.HttpServletResponse getResponse()Returns the response.- Returns:
- the response
-
getSessionInformation
-
getFilterChain
public @Nullable jakarta.servlet.FilterChain getFilterChain()Returns the filter chain.- Returns:
- the filter chain. Can be
null. - Since:
- 6.4
-