Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractHttpSessionApplicationInitializer - Class in org.springframework.session.web.context
-
Registers the
DelegatingFilterProxy
to use the springSessionRepositoryFilter before any other registeredFilter
. - AbstractHttpSessionApplicationInitializer() - Constructor for class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Creates a new instance that assumes the Spring Session configuration is loaded by some other means than this class.
- AbstractHttpSessionApplicationInitializer(Class<?>...) - Constructor for class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Creates a new instance that will instantiate the
ContextLoaderListener
with the specified classes. - AbstractSessionEvent - Class in org.springframework.session.events
-
For
SessionRepository
implementations that support it, this event is fired when aSession
is updated. - AbstractSessionWebSocketMessageBrokerConfigurer<S extends Session> - Class in org.springframework.session.web.socket.config.annotation
-
Eases configuration of Web Socket and Spring Session integration.
- AbstractSessionWebSocketMessageBrokerConfigurer() - Constructor for class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
- afterHandshake(ServerHttpRequest, ServerHttpResponse, WebSocketHandler, Exception) - Method in class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
- afterPropertiesSet() - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- afterSessionRepositoryFilter(ServletContext) - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Invoked after the springSessionRepositoryFilter is added.
- ALREADY_FILTERED_SUFFIX - Static variable in class org.springframework.session.web.http.SessionRepositoryFilter
-
Suffix that gets appended to the filter name for the "already filtered" request attribute.
- ALWAYS - Enum constant in enum class org.springframework.session.SaveMode
-
Always save all session attributes, regardless of the interaction with the session.
- appendFilters(ServletContext, Filter...) - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Inserts the provided
Filter
s after existingFilter
s using default generated names,AbstractHttpSessionApplicationInitializer.getSessionDispatcherTypes()
, andAbstractHttpSessionApplicationInitializer.isAsyncSessionSupported()
. - authenticationInfo() - Static method in class org.springframework.session.web.http.HeaderHttpSessionIdResolver
-
Convenience factory to create
HeaderHttpSessionIdResolver
that uses "Authentication-Info" header. - autoLogin(HttpServletRequest, HttpServletResponse) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
B
- beforeHandshake(ServerHttpRequest, ServerHttpResponse, WebSocketHandler, Map<String, Object>) - Method in class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
- beforeSessionRepositoryFilter(ServletContext) - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Invoked before the springSessionRepositoryFilter is added.
C
- changeSessionId() - Method in class org.springframework.session.MapSession
- changeSessionId() - Method in interface org.springframework.session.Session
-
Changes the session id.
- configureClientInboundChannel(ChannelRegistration) - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
- configureStompEndpoints(StompEndpointRegistry) - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
-
Register STOMP endpoints mapping each to a specific URL and (optionally) enabling and configuring SockJS fallback options with a
SessionRepositoryMessageInterceptor
automatically added as an interceptor. - configureWebSocketTransport(WebSocketTransportRegistration) - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
- CookieHttpSessionIdResolver - Class in org.springframework.session.web.http
-
A
HttpSessionIdResolver
that uses a cookie to obtain the session from. - CookieHttpSessionIdResolver() - Constructor for class org.springframework.session.web.http.CookieHttpSessionIdResolver
- CookieSerializer - Interface in org.springframework.session.web.http
-
Strategy for reading and writing a cookie value to the
HttpServletResponse
. - CookieSerializer.CookieValue - Class in org.springframework.session.web.http
-
Contains the information necessary to write a value to the
HttpServletResponse
. - CookieValue(HttpServletRequest, HttpServletResponse, String) - Constructor for class org.springframework.session.web.http.CookieSerializer.CookieValue
-
Creates a new instance.
- createSession() - Method in class org.springframework.session.MapSessionRepository
- createSession() - Method in class org.springframework.session.ReactiveMapSessionRepository
- createSession() - Method in interface org.springframework.session.ReactiveSessionRepository
-
Creates a new
Session
that is capable of being persisted by thisReactiveSessionRepository
. - createSession() - Method in interface org.springframework.session.SessionRepository
-
Creates a new
Session
that is capable of being persisted by thisSessionRepository
. - createWebSession() - Method in class org.springframework.session.web.server.session.SpringSessionWebSessionStore
- customize(T) - Method in interface org.springframework.session.config.ReactiveSessionRepositoryCustomizer
-
Customize the
ReactiveSessionRepository
. - customize(T) - Method in interface org.springframework.session.config.SessionRepositoryCustomizer
-
Customize the
SessionRepository
.
D
- decorate(WebSocketHandler) - Method in class org.springframework.session.web.socket.handler.WebSocketConnectHandlerDecoratorFactory
- DEFAULT_FILTER_NAME - Static variable in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
The default name for Spring Session's repository filter.
- DEFAULT_MAX_INACTIVE_INTERVAL - Static variable in class org.springframework.session.MapSession
-
Default
MapSession.setMaxInactiveInterval(Duration)
(30 minutes). - DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS - Static variable in class org.springframework.session.MapSession
-
Default
MapSession.setMaxInactiveInterval(Duration)
(30 minutes) in seconds. - DEFAULT_ORDER - Static variable in class org.springframework.session.web.http.SessionRepositoryFilter
-
The default filter order.
- DefaultCookieSerializer - Class in org.springframework.session.web.http
-
The default implementation of
CookieSerializer
. - DefaultCookieSerializer() - Constructor for class org.springframework.session.web.http.DefaultCookieSerializer
- DelegatingIndexResolver<S extends Session> - Class in org.springframework.session
-
An
IndexResolver
that resolves indexes using multiple @{link IndexResolver} delegates. - DelegatingIndexResolver(List<IndexResolver<S>>) - Constructor for class org.springframework.session.DelegatingIndexResolver
- DelegatingIndexResolver(IndexResolver<S>...) - Constructor for class org.springframework.session.DelegatingIndexResolver
- deleteById(String) - Method in class org.springframework.session.MapSessionRepository
- deleteById(String) - Method in class org.springframework.session.ReactiveMapSessionRepository
- deleteById(String) - Method in interface org.springframework.session.ReactiveSessionRepository
- deleteById(String) - Method in interface org.springframework.session.SessionRepository
- destroy() - Method in class org.springframework.session.web.http.SessionRepositoryFilter
- doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class org.springframework.session.web.http.SessionRepositoryFilter
-
This
doFilter
implementation stores a request attribute for "already filtered", proceeding without filtering again if the attribute is already there. - doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class org.springframework.session.web.http.SessionRepositoryFilter
- doFilterNestedErrorDispatch(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class org.springframework.session.web.http.SessionRepositoryFilter
E
- EnableSpringHttpSession - Annotation Interface in org.springframework.session.config.annotation.web.http
-
Add this annotation to an
@Configuration
class to expose the SessionRepositoryFilter as a bean named "springSessionRepositoryFilter" and backed by a user provided implementation ofSessionRepository
. - EnableSpringWebSession - Annotation Interface in org.springframework.session.config.annotation.web.server
-
Add this annotation to a
@Configuration
class to configure aWebSessionManager
for a WebFlux application. - equals(Object) - Method in class org.springframework.session.MapSession
- expireSession(HttpServletRequest, HttpServletResponse) - Method in class org.springframework.session.web.http.CookieHttpSessionIdResolver
- expireSession(HttpServletRequest, HttpServletResponse) - Method in class org.springframework.session.web.http.HeaderHttpSessionIdResolver
- expireSession(HttpServletRequest, HttpServletResponse) - Method in interface org.springframework.session.web.http.HttpSessionIdResolver
-
Instruct the client to end the current session.
F
- findById(String) - Method in class org.springframework.session.MapSessionRepository
- findById(String) - Method in class org.springframework.session.ReactiveMapSessionRepository
- findById(String) - Method in interface org.springframework.session.ReactiveSessionRepository
- findById(String) - Method in interface org.springframework.session.SessionRepository
- findByIndexNameAndIndexValue(String, String) - Method in interface org.springframework.session.FindByIndexNameSessionRepository
- FindByIndexNameSessionRepository<S extends Session> - Interface in org.springframework.session
-
Extends a basic
SessionRepository
to allow finding sessions by the specified index name and index value. - findByPrincipalName(String) - Method in interface org.springframework.session.FindByIndexNameSessionRepository
-
Find a
Map
of the session id to theSession
of all sessions that contain the index with the nameFindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME
and the specified principal name. - FlushMode - Enum Class in org.springframework.session
-
Supported modes of writing the session to session store.
G
- getAllPrincipals() - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
- getAllSessions(Object, boolean) - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
- getAlreadyFilteredAttributeName() - Method in class org.springframework.session.web.http.SessionRepositoryFilter
-
Return the name of the request attribute that identifies that a request is already filtered.
- getAttribute(String) - Method in class org.springframework.session.MapSession
- getAttribute(String) - Method in interface org.springframework.session.Session
-
Gets the Object associated with the specified name or null if no Object is associated to that name.
- getAttributeNames() - Method in class org.springframework.session.MapSession
- getAttributeNames() - Method in interface org.springframework.session.Session
-
Gets the attribute names that have a value associated with it.
- getAttributeOrDefault(String, T) - Method in interface org.springframework.session.Session
-
Return the session attribute value, or a default, fallback value.
- getCookieMaxAge() - Method in class org.springframework.session.web.http.CookieSerializer.CookieValue
-
Get the cookie max age.
- getCookieValue() - Method in class org.springframework.session.web.http.CookieSerializer.CookieValue
-
The value to be written.
- getCreationTime() - Method in class org.springframework.session.MapSession
- getCreationTime() - Method in interface org.springframework.session.Session
-
Gets the time when this session was created.
- getDispatcherWebApplicationContextSuffix() - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Return the
<servlet-name>
to use the DispatcherServlet'sWebApplicationContext
to find theDelegatingFilterProxy
or null to use the parentApplicationContext
. - getId() - Method in class org.springframework.session.MapSession
- getId() - Method in interface org.springframework.session.Session
-
Gets a unique string that identifies the
Session
. - getIndexName() - Method in class org.springframework.session.SingleIndexResolver
- getLastAccessedTime() - Method in class org.springframework.session.MapSession
- getLastAccessedTime() - Method in interface org.springframework.session.Session
-
Gets the last time this
Session
was accessed. - getMaxInactiveInterval() - Method in class org.springframework.session.MapSession
- getMaxInactiveInterval() - Method in interface org.springframework.session.Session
-
Gets the maximum inactive interval between requests before this session will be invalidated.
- getOriginalId() - Method in class org.springframework.session.MapSession
-
Get the original session id.
- getRequest() - Method in class org.springframework.session.web.http.CookieSerializer.CookieValue
-
Gets the request to use.
- getRequiredAttribute(String) - Method in interface org.springframework.session.Session
-
Return the session attribute value or if not present raise an
IllegalArgumentException
. - getResponse() - Method in class org.springframework.session.web.http.CookieSerializer.CookieValue
-
Gets the response to write to.
- getSession() - Method in class org.springframework.session.events.AbstractSessionEvent
-
Gets the
Session
that was destroyed. - getSessionDispatcherTypes() - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Get the
DispatcherType
for the springSessionRepositoryFilter. - getSessionId() - Method in class org.springframework.session.events.AbstractSessionEvent
- getSessionId(Map<String, Object>) - Static method in class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
- getSessionInformation(String) - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
- getWebSocketSession() - Method in class org.springframework.session.web.socket.events.SessionConnectEvent
H
- hashCode() - Method in class org.springframework.session.MapSession
- HeaderHttpSessionIdResolver - Class in org.springframework.session.web.http
-
A
HttpSessionIdResolver
that uses a header to resolve the session id. - HeaderHttpSessionIdResolver(String) - Constructor for class org.springframework.session.web.http.HeaderHttpSessionIdResolver
-
The name of the header to obtain the session id from.
- HttpSessionIdResolver - Interface in org.springframework.session.web.http
-
Contract for session id resolution strategies.
I
- IMMEDIATE - Enum constant in enum class org.springframework.session.FlushMode
-
Writes to session store as soon as possible.
- IndexResolver<S extends Session> - Interface in org.springframework.session
-
Strategy interface for resolving the
Session
's indexes. - init(FilterConfig) - Method in class org.springframework.session.web.http.SessionRepositoryFilter
- insertFilters(ServletContext, Filter...) - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Inserts the provided
Filter
s before existingFilter
s using default generated names,AbstractHttpSessionApplicationInitializer.getSessionDispatcherTypes()
, andAbstractHttpSessionApplicationInitializer.isAsyncSessionSupported()
. - INVALID_SESSION_ID_ATTR - Static variable in class org.springframework.session.web.http.SessionRepositoryFilter
-
Invalid session id (not backed by the session repository) request attribute name.
- isAsyncSessionSupported() - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
-
Determine if the springSessionRepositoryFilter should be marked as supporting asynch.
- isExpired() - Method in class org.springframework.session.MapSession
- isExpired() - Method in interface org.springframework.session.Session
-
Returns true if the session is expired.
L
- loginFail(HttpServletRequest, HttpServletResponse) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
- loginSuccess(HttpServletRequest, HttpServletResponse, Authentication) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
- logout(HttpServletRequest, HttpServletResponse, Authentication) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
M
- MapSession - Class in org.springframework.session
- MapSession() - Constructor for class org.springframework.session.MapSession
-
Creates a new instance with a secure randomly generated identifier.
- MapSession(String) - Constructor for class org.springframework.session.MapSession
-
Creates a new instance with the specified id.
- MapSession(Session) - Constructor for class org.springframework.session.MapSession
-
Creates a new instance from the provided
Session
. - MapSessionRepository - Class in org.springframework.session
- MapSessionRepository(Map<String, Session>) - Constructor for class org.springframework.session.MapSessionRepository
-
Creates a new instance backed by the provided
Map
.
N
- name(Object) - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
-
Derives a String name for the given principal.
O
- ON_GET_ATTRIBUTE - Enum constant in enum class org.springframework.session.SaveMode
-
Same as
SaveMode.ON_SET_ATTRIBUTE
with addition of saving attributes that have been read usingSession.getAttribute(String)
. - ON_SAVE - Enum constant in enum class org.springframework.session.FlushMode
-
Only writes to session store when
SessionRepository.save(Session)
is invoked. - ON_SET_ATTRIBUTE - Enum constant in enum class org.springframework.session.SaveMode
-
Save only changes made to session, for instance using
Session.setAttribute(String, Object)
. - onApplicationEvent(ApplicationEvent) - Method in class org.springframework.session.web.socket.handler.WebSocketRegistryListener
- onApplicationEvent(AbstractSessionEvent) - Method in class org.springframework.session.web.http.SessionEventHttpSessionListenerAdapter
- onStartup(ServletContext) - Method in class org.springframework.session.web.context.AbstractHttpSessionApplicationInitializer
- org.springframework.session - package org.springframework.session
- org.springframework.session.config - package org.springframework.session.config
- org.springframework.session.config.annotation.web.http - package org.springframework.session.config.annotation.web.http
- org.springframework.session.config.annotation.web.server - package org.springframework.session.config.annotation.web.server
- org.springframework.session.events - package org.springframework.session.events
- org.springframework.session.security - package org.springframework.session.security
- org.springframework.session.security.web.authentication - package org.springframework.session.security.web.authentication
- org.springframework.session.web.context - package org.springframework.session.web.context
- org.springframework.session.web.http - package org.springframework.session.web.http
- org.springframework.session.web.server.session - package org.springframework.session.web.server.session
-
Spring Session reactive web support.
- org.springframework.session.web.socket.config.annotation - package org.springframework.session.web.socket.config.annotation
- org.springframework.session.web.socket.events - package org.springframework.session.web.socket.events
- org.springframework.session.web.socket.handler - package org.springframework.session.web.socket.handler
- org.springframework.session.web.socket.server - package org.springframework.session.web.socket.server
P
- preSend(Message<?>, MessageChannel) - Method in class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
- PRINCIPAL_NAME_INDEX_NAME - Static variable in interface org.springframework.session.FindByIndexNameSessionRepository
-
A session index that contains the current principal name (i.e.
- PrincipalNameIndexResolver<S extends Session> - Class in org.springframework.session
-
IndexResolver
to resolve the principal name from session attribute namedFindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME
or Spring Security context stored in the session underSPRING_SECURITY_CONTEXT
attribute. - PrincipalNameIndexResolver() - Constructor for class org.springframework.session.PrincipalNameIndexResolver
R
- ReactiveMapSessionRepository - Class in org.springframework.session
- ReactiveMapSessionRepository(Map<String, Session>) - Constructor for class org.springframework.session.ReactiveMapSessionRepository
-
Creates a new instance backed by the provided
Map
. - ReactiveSessionRepository<S extends Session> - Interface in org.springframework.session
-
A repository interface for managing
Session
instances. - ReactiveSessionRepositoryCustomizer<T extends ReactiveSessionRepository> - Interface in org.springframework.session.config
-
Strategy that can be used to customize the
ReactiveSessionRepository
before it is fully initialized, in particular to tune its configuration. - readCookieValues(HttpServletRequest) - Method in interface org.springframework.session.web.http.CookieSerializer
-
Reads all the matching cookies from the
HttpServletRequest
. - readCookieValues(HttpServletRequest) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
- refreshLastRequest(String) - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
- registerNewSession(String, Object) - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
- registerStompEndpoints(StompEndpointRegistry) - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
- REMEMBER_ME_LOGIN_ATTR - Static variable in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
-
Remember-me login request attribute name.
- rememberMeRequested(HttpServletRequest, String) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
-
Allows customization of whether a remember-me login has been requested.
- removeAttribute(String) - Method in class org.springframework.session.MapSession
- removeAttribute(String) - Method in interface org.springframework.session.Session
-
Removes the attribute with the provided attribute name.
- removeSession(String) - Method in class org.springframework.session.web.server.session.SpringSessionWebSessionStore
- removeSessionInformation(String) - Method in class org.springframework.session.security.SpringSessionBackedSessionRegistry
- resolveIndexesFor(S) - Method in class org.springframework.session.DelegatingIndexResolver
- resolveIndexesFor(S) - Method in interface org.springframework.session.IndexResolver
-
Resolve indexes for the session.
- resolveIndexesFor(S) - Method in class org.springframework.session.SingleIndexResolver
- resolveIndexValueFor(S) - Method in class org.springframework.session.PrincipalNameIndexResolver
- resolveIndexValueFor(S) - Method in class org.springframework.session.SingleIndexResolver
- resolveSessionIds(HttpServletRequest) - Method in class org.springframework.session.web.http.CookieHttpSessionIdResolver
- resolveSessionIds(HttpServletRequest) - Method in class org.springframework.session.web.http.HeaderHttpSessionIdResolver
- resolveSessionIds(HttpServletRequest) - Method in interface org.springframework.session.web.http.HttpSessionIdResolver
-
Resolve the session ids associated with the provided
HttpServletRequest
. - retrieveSession(String) - Method in class org.springframework.session.web.server.session.SpringSessionWebSessionStore
S
- save(MapSession) - Method in class org.springframework.session.MapSessionRepository
- save(MapSession) - Method in class org.springframework.session.ReactiveMapSessionRepository
- save(S) - Method in interface org.springframework.session.ReactiveSessionRepository
-
Ensures the
Session
created byReactiveSessionRepository.createSession()
is saved. - save(S) - Method in interface org.springframework.session.SessionRepository
-
Ensures the
Session
created bySessionRepository.createSession()
is saved. - SaveMode - Enum Class in org.springframework.session
-
Supported modes of tracking and saving session changes to session store.
- Session - Interface in org.springframework.session
-
Provides a way to identify a user in an agnostic way.
- SESSION_REPOSITORY_ATTR - Static variable in class org.springframework.session.web.http.SessionRepositoryFilter
-
The session repository request attribute name.
- SessionConnectEvent - Class in org.springframework.session.web.socket.events
-
Similar to Spring
SessionConnectEvent
except that it provides access to theWebSocketSession
to allow mapping the Spring Session to theWebSocketSession
. - SessionConnectEvent(Object, WebSocketSession) - Constructor for class org.springframework.session.web.socket.events.SessionConnectEvent
- SessionCreatedEvent - Class in org.springframework.session.events
-
For
SessionRepository
implementations that support it, this event is fired when aSession
is created. - SessionCreatedEvent(Object, Session) - Constructor for class org.springframework.session.events.SessionCreatedEvent
-
Create a new
SessionCreatedEvent
. - SessionDeletedEvent - Class in org.springframework.session.events
-
For
SessionRepository
implementations that support it, this event is fired when aSession
is destroyed via deletion. - SessionDeletedEvent(Object, Session) - Constructor for class org.springframework.session.events.SessionDeletedEvent
-
Create a new
SessionDeletedEvent
. - SessionDestroyedEvent - Class in org.springframework.session.events
-
Base class for events fired when a
Session
is destroyed explicitly. - SessionDestroyedEvent(Object, Session) - Constructor for class org.springframework.session.events.SessionDestroyedEvent
-
Create a new
SessionDestroyedEvent
. - sessionEventHttpSessionListenerAdapter() - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- SessionEventHttpSessionListenerAdapter - Class in org.springframework.session.web.http
-
Receives
SessionDestroyedEvent
andSessionCreatedEvent
and translates them intoHttpSessionEvent
and submits theHttpSessionEvent
to every registeredHttpSessionListener
. - SessionEventHttpSessionListenerAdapter(List<HttpSessionListener>) - Constructor for class org.springframework.session.web.http.SessionEventHttpSessionListenerAdapter
- SessionExpiredEvent - Class in org.springframework.session.events
-
For
SessionRepository
implementations that support it, this event is fired when aSession
is destroyed via expiration. - SessionExpiredEvent(Object, Session) - Constructor for class org.springframework.session.events.SessionExpiredEvent
-
Create a new
SessionExpiredEvent
. - SessionRepository<S extends Session> - Interface in org.springframework.session
-
A repository interface for managing
Session
instances. - SessionRepositoryCustomizer<T extends SessionRepository> - Interface in org.springframework.session.config
-
Strategy that can be used to customize the
SessionRepository
before it is fully initialized, in particular to tune its configuration. - SessionRepositoryFilter<S extends Session> - Class in org.springframework.session.web.http
-
Switches the
HttpSession
implementation to be backed by aSession
. - SessionRepositoryFilter(SessionRepository<S>) - Constructor for class org.springframework.session.web.http.SessionRepositoryFilter
-
Creates a new instance.
- sessionRepositoryInterceptor() - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
- SessionRepositoryMessageInterceptor<S extends Session> - Class in org.springframework.session.web.socket.server
-
Acts as a
ChannelInterceptor
and aHandshakeInterceptor
to ensure theSession.getLastAccessedTime()
is up to date. - SessionRepositoryMessageInterceptor(SessionRepository<S>) - Constructor for class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
-
Creates a new instance.
- setAlwaysRemember(boolean) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
- setApplicationContext(ApplicationContext) - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- setAttribute(String, Object) - Method in class org.springframework.session.MapSession
- setAttribute(String, Object) - Method in interface org.springframework.session.Session
-
Sets the attribute value for the provided attribute name.
- setClock(Clock) - Method in class org.springframework.session.web.server.session.SpringSessionWebSessionStore
-
Configure the
Clock
to use to set lastAccessTime on every created session and to calculate if it is expired. - setCookieMaxAge(int) - Method in class org.springframework.session.web.http.CookieSerializer.CookieValue
-
Set the cookie max age.
- setCookieMaxAge(int) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Sets the maxAge property of the Cookie.
- setCookieName(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
- setCookiePath(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Sets the path of the Cookie.
- setCookieSerializer(CookieSerializer) - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- setCookieSerializer(CookieSerializer) - Method in class org.springframework.session.web.http.CookieHttpSessionIdResolver
-
Sets the
CookieSerializer
to be used. - setCreationTime(Instant) - Method in class org.springframework.session.MapSession
-
Sets the time that this
Session
was created. - setDefaultMaxInactiveInterval(Duration) - Method in class org.springframework.session.MapSessionRepository
-
Set the maximum inactive interval in seconds between requests before newly created sessions will be invalidated.
- setDefaultMaxInactiveInterval(Duration) - Method in class org.springframework.session.ReactiveMapSessionRepository
-
Set the maximum inactive interval in seconds between requests before newly created sessions will be invalidated.
- setDomainName(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Sets an explicit Domain Name.
- setDomainNamePattern(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Sets a case insensitive pattern used to extract the domain name from the
ServletRequest.getServerName()
. - setHttpSessionIdResolver(HttpSessionIdResolver) - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- setHttpSessionIdResolver(HttpSessionIdResolver) - Method in class org.springframework.session.web.http.SessionRepositoryFilter
-
Sets the
HttpSessionIdResolver
to be used. - setHttpSessionListeners(List<HttpSessionListener>) - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- setId(String) - Method in class org.springframework.session.MapSession
-
Sets the identifier for this
Session
. - setJvmRoute(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Used to identify which JVM to route to for session affinity.
- setLastAccessedTime(Instant) - Method in class org.springframework.session.MapSession
- setLastAccessedTime(Instant) - Method in interface org.springframework.session.Session
-
Sets the last accessed time.
- setMatchingMessageTypes(Set<SimpMessageType>) - Method in class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
-
Sets the
SimpMessageType
to match on. - setMaxInactiveInterval(Duration) - Method in class org.springframework.session.MapSession
- setMaxInactiveInterval(Duration) - Method in interface org.springframework.session.Session
-
Sets the maximum inactive interval between requests before this session will be invalidated.
- setRememberMeParameterName(String) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
-
Set the name of the parameter which should be checked for to see if a remember-me has been requested during a login request.
- setRememberMeRequestAttribute(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Set the request attribute name that indicates remember-me login.
- setSameSite(String) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Set the value for the
SameSite
cookie directive. - setServletContext(ServletContext) - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- setServletContext(ServletContext) - Method in class org.springframework.session.web.http.SessionEventHttpSessionListenerAdapter
- setSessionId(HttpServletRequest, HttpServletResponse, String) - Method in class org.springframework.session.web.http.CookieHttpSessionIdResolver
- setSessionId(HttpServletRequest, HttpServletResponse, String) - Method in class org.springframework.session.web.http.HeaderHttpSessionIdResolver
- setSessionId(HttpServletRequest, HttpServletResponse, String) - Method in interface org.springframework.session.web.http.HttpSessionIdResolver
-
Send the given session id to the client.
- setSessionId(Map<String, Object>, String) - Static method in class org.springframework.session.web.socket.server.SessionRepositoryMessageInterceptor
- setUseBase64Encoding(boolean) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Set if the Base64 encoding of cookie value should be used.
- setUseHttpOnlyCookie(boolean) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Sets if a Cookie marked as HTTP Only should be used.
- setUseSecureCookie(boolean) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
-
Sets if a Cookie marked as secure should be used.
- setValiditySeconds(int) - Method in class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
- setWebSessionIdResolver(WebSessionIdResolver) - Method in class org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
- SingleIndexResolver<S extends Session> - Class in org.springframework.session
-
Base class for
IndexResolver
s that resolve a single index. - SingleIndexResolver(String) - Constructor for class org.springframework.session.SingleIndexResolver
- SpringHttpSessionConfiguration - Class in org.springframework.session.config.annotation.web.http
-
Configures the basics for setting up Spring Session in a web environment.
- SpringHttpSessionConfiguration() - Constructor for class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- SpringSessionBackedSessionRegistry<S extends Session> - Class in org.springframework.session.security
-
A
SessionRegistry
that retrieves session information from Spring Session, rather than maintaining it itself. - SpringSessionBackedSessionRegistry(FindByIndexNameSessionRepository<S>) - Constructor for class org.springframework.session.security.SpringSessionBackedSessionRegistry
- SpringSessionRememberMeServices - Class in org.springframework.session.security.web.authentication
-
A
RememberMeServices
implementation that uses Spring Session backedHttpSession
to provide remember-me service capabilities. - SpringSessionRememberMeServices() - Constructor for class org.springframework.session.security.web.authentication.SpringSessionRememberMeServices
- springSessionRepositoryFilter(SessionRepository<S>) - Method in class org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
- SpringSessionWebSessionStore<S extends Session> - Class in org.springframework.session.web.server.session
-
The
WebSessionStore
implementation that provides theWebSession
implementation backed by aSession
returned by theReactiveSessionRepository
. - SpringSessionWebSessionStore(ReactiveSessionRepository<S>) - Constructor for class org.springframework.session.web.server.session.SpringSessionWebSessionStore
- SpringWebSessionConfiguration - Class in org.springframework.session.config.annotation.web.server
-
Wire up a
WebSessionManager
using a ReactiveReactiveSessionRepository
from the application context. - SpringWebSessionConfiguration() - Constructor for class org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
U
- updateLastAccessTime(WebSession) - Method in class org.springframework.session.web.server.session.SpringSessionWebSessionStore
V
- valueOf(String) - Static method in enum class org.springframework.session.FlushMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.session.SaveMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.session.FlushMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.session.SaveMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- webSessionManager(ReactiveSessionRepository<? extends Session>) - Method in class org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
-
Configure a
WebSessionManager
using a providedReactiveSessionRepository
. - WebSocketConnectHandlerDecoratorFactory - Class in org.springframework.session.web.socket.handler
-
Ensures that a
SessionConnectEvent
is published inWebSocketHandler.afterConnectionEstablished(WebSocketSession)
. - WebSocketConnectHandlerDecoratorFactory(ApplicationEventPublisher) - Constructor for class org.springframework.session.web.socket.handler.WebSocketConnectHandlerDecoratorFactory
-
Creates a new instance.
- webSocketRegistryListener() - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
- WebSocketRegistryListener - Class in org.springframework.session.web.socket.handler
-
Keeps track of mapping the Spring Session ID to the
WebSocketSession
and ensuring when aSessionDestroyedEvent
is fired that theWebSocketSession
is closed. - WebSocketRegistryListener() - Constructor for class org.springframework.session.web.socket.handler.WebSocketRegistryListener
- writeCookieValue(CookieSerializer.CookieValue) - Method in interface org.springframework.session.web.http.CookieSerializer
-
Writes a given
CookieSerializer.CookieValue
to the providedHttpServletResponse
. - writeCookieValue(CookieSerializer.CookieValue) - Method in class org.springframework.session.web.http.DefaultCookieSerializer
- wsConnectHandlerDecoratorFactory() - Method in class org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer
X
- xAuthToken() - Static method in class org.springframework.session.web.http.HeaderHttpSessionIdResolver
-
Convenience factory to create
HeaderHttpSessionIdResolver
that uses "X-Auth-Token" header.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form