Class RedisHttpSessionConfiguration
java.lang.Object
org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration<RedisSessionRepository>
org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EmbeddedValueResolverAware
@Configuration(proxyBeanMethods=false)
public class RedisHttpSessionConfiguration
extends AbstractRedisHttpSessionConfiguration<RedisSessionRepository>
implements org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Exposes the
SessionRepositoryFilter
as a bean named
springSessionRepositoryFilter
backed by RedisSessionRepository
. In
order to use this a single RedisConnectionFactory
must be exposed as a Bean.- Since:
- 1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setEmbeddedValueResolver
(org.springframework.util.StringValueResolver resolver) void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) void
setSessionIdGenerator
(SessionIdGenerator sessionIdGenerator) Methods inherited from class org.springframework.session.data.redis.config.annotation.web.http.AbstractRedisHttpSessionConfiguration
createRedisTemplate, getDefaultRedisSerializer, getFlushMode, getMaxInactiveInterval, getRedisConnectionFactory, getRedisNamespace, getSaveMode, getSessionRepositoryCustomizers, setBeanClassLoader, setDefaultRedisSerializer, setFlushMode, setMaxInactiveInterval, setMaxInactiveIntervalInSeconds, setRedisConnectionFactory, setRedisNamespace, setSaveMode, setSessionRepositoryCustomizer
-
Constructor Details
-
RedisHttpSessionConfiguration
public RedisHttpSessionConfiguration()
-
-
Method Details
-
sessionRepository
- Specified by:
sessionRepository
in classAbstractRedisHttpSessionConfiguration<RedisSessionRepository>
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) - Specified by:
setEmbeddedValueResolver
in interfaceorg.springframework.context.EmbeddedValueResolverAware
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
setSessionIdGenerator
-