@Configuration public class MongoHttpSessionConfiguration extends SpringHttpSessionConfiguration implements 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 |
---|---|
MongoOperationsSessionRepository |
mongoSessionRepository(org.springframework.data.mongodb.core.MongoOperations mongoOperations) |
void |
setCollectionName(java.lang.String collectionName) |
void |
setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver) |
void |
setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) |
void |
setMaxInactiveIntervalInSeconds(java.lang.Integer maxInactiveIntervalInSeconds) |
void |
setMongoSessionConverter(AbstractMongoSessionConverter mongoSessionConverter) |
init, sessionEventHttpSessionListenerAdapter, setApplicationContext, setCookieSerializer, setHttpSessionListeners, setHttpSessionStrategy, setServletContext, springSessionRepositoryFilter
@Bean public MongoOperationsSessionRepository 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)
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
setEmbeddedValueResolver
in interface org.springframework.context.EmbeddedValueResolverAware