Class MongoHttpSessionConfiguration

java.lang.Object
org.springframework.session.data.mongo.config.annotation.web.http.MongoHttpSessionConfiguration
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) @Import(SpringHttpSessionConfiguration.class) public class MongoHttpSessionConfiguration extends Object implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
Configuration class registering MongoSessionRepository bean. To import this configuration use EnableMongoHttpSession annotation.
Since:
1.2
  • Constructor Details

    • MongoHttpSessionConfiguration

      public MongoHttpSessionConfiguration()
  • Method Details

    • mongoSessionRepository

      @Bean public MongoIndexedSessionRepository mongoSessionRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations)
    • setCollectionName

      public void setCollectionName(String collectionName)
    • setMaxInactiveInterval

      public void setMaxInactiveInterval(Duration maxInactiveInterval)
    • setMaxInactiveIntervalInSeconds

      @Deprecated public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds)
      Deprecated.
    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware
    • setMongoSessionConverter

      @Autowired(required=false) public void setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter)
    • setSessionRepositoryCustomizers

      @Autowired(required=false) public void setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<SessionRepositoryCustomizer<MongoIndexedSessionRepository>> sessionRepositoryCustomizers)
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • setEmbeddedValueResolver

      public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
      Specified by:
      setEmbeddedValueResolver in interface org.springframework.context.EmbeddedValueResolverAware
    • setIndexResolver

      @Autowired(required=false) public void setIndexResolver(IndexResolver<Session> indexResolver)
    • setSessionIdGenerator

      @Autowired(required=false) public void setSessionIdGenerator(SessionIdGenerator sessionIdGenerator)