Class JacksonMongoSessionConverter
java.lang.Object
org.springframework.session.data.mongo.AbstractMongoSessionConverter
org.springframework.session.data.mongo.JacksonMongoSessionConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.GenericConverter
AbstractMongoSessionConverter implementation using Jackson.- 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
ConstructorsConstructorDescriptionJacksonMongoSessionConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper) JacksonMongoSessionConverter(Iterable<com.fasterxml.jackson.databind.Module> modules) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.session.data.mongo.MongoSessionconvert(org.bson.Document source) protected com.mongodb.DBObjectconvert(org.springframework.session.data.mongo.MongoSession source) protected 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
-
JacksonMongoSessionConverter
public JacksonMongoSessionConverter() -
JacksonMongoSessionConverter
-
JacksonMongoSessionConverter
public JacksonMongoSessionConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getQueryForIndex
@Nullable protected 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 source) - Specified by:
convertin classAbstractMongoSessionConverter
-
convert
@Nullable protected org.springframework.session.data.mongo.MongoSession convert(org.bson.Document source) - Specified by:
convertin classAbstractMongoSessionConverter
-