Class JdkMongoSessionConverter
java.lang.Object
org.springframework.session.data.mongo.AbstractMongoSessionConverter
org.springframework.session.data.mongo.JdkMongoSessionConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.GenericConverter
AbstractMongoSessionConverter implementation using standard Java serialization.- Since:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair -
Constructor Summary
ConstructorsConstructorDescriptionJdkMongoSessionConverter(Duration maxInactiveInterval) JdkMongoSessionConverter(org.springframework.core.convert.converter.Converter<Object, byte[]> serializer, org.springframework.core.convert.converter.Converter<byte[], Object> deserializer, Duration maxInactiveInterval) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.session.data.mongo.MongoSessionconvert(org.bson.Document sessionWrapper) protected com.mongodb.DBObjectconvert(org.springframework.session.data.mongo.MongoSession session) org.springframework.data.mongodb.core.query.QuerygetQueryForIndex(String indexName, Object indexValue) Returns query to be executed to return sessions based on a particular index.Methods inherited from class org.springframework.session.data.mongo.AbstractMongoSessionConverter
convert, ensureIndexes, extractPrincipal, getConvertibleTypes, setIndexResolver
-
Constructor Details
-
JdkMongoSessionConverter
-
JdkMongoSessionConverter
-
-
Method Details
-
getQueryForIndex
@Nullable public org.springframework.data.mongodb.core.query.Query getQueryForIndex(String indexName, Object indexValue) Description copied from class:AbstractMongoSessionConverterReturns query to be executed to return sessions based on a particular index.- Specified by:
getQueryForIndexin classAbstractMongoSessionConverter- Parameters:
indexName- name of the indexindexValue- value to query against- Returns:
- built query or null if indexName is not supported
-
convert
protected com.mongodb.DBObject convert(org.springframework.session.data.mongo.MongoSession session) - Specified by:
convertin classAbstractMongoSessionConverter
-
convert
protected org.springframework.session.data.mongo.MongoSession convert(org.bson.Document sessionWrapper) - Specified by:
convertin classAbstractMongoSessionConverter
-