@Configuration(proxyBeanMethods=false)
public class MongoHttpSessionConfiguration
extends org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.context.annotation.ImportAware
MongoSessionRepository bean. To import this
configuration use EnableMongoHttpSession annotation.| Constructor and Description |
|---|
MongoHttpSessionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
MongoIndexedSessionRepository |
mongoSessionRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
void |
setCollectionName(java.lang.String collectionName) |
void |
setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setIndexResolver(org.springframework.session.IndexResolver<MongoSession> indexResolver) |
void |
setMaxInactiveIntervalInSeconds(java.lang.Integer maxInactiveIntervalInSeconds) |
void |
setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter) |
void |
setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<MongoIndexedSessionRepository>> sessionRepositoryCustomizers) |
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionIdResolver, setHttpSessionListeners, setServletContext, springSessionRepositoryFilter@Bean public MongoIndexedSessionRepository mongoSessionRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations)
public void setCollectionName(java.lang.String collectionName)
public void setMaxInactiveIntervalInSeconds(java.lang.Integer maxInactiveIntervalInSeconds)
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
setImportMetadata in interface org.springframework.context.annotation.ImportAware@Autowired(required=false) public void setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter)
@Autowired(required=false) public void setSessionRepositoryCustomizers(org.springframework.beans.factory.ObjectProvider<org.springframework.session.config.SessionRepositoryCustomizer<MongoIndexedSessionRepository>> sessionRepositoryCustomizers)
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
setEmbeddedValueResolver in interface org.springframework.context.EmbeddedValueResolverAware@Autowired(required=false) public void setIndexResolver(org.springframework.session.IndexResolver<MongoSession> indexResolver)