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
ConstructorDescriptionJacksonMongoSessionConverter
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) JacksonMongoSessionConverter
(Iterable<com.fasterxml.jackson.databind.Module> modules) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.session.data.mongo.MongoSession
convert
(org.bson.Document source) protected com.mongodb.DBObject
convert
(org.springframework.session.data.mongo.MongoSession source) protected org.springframework.data.mongodb.core.query.Query
getQueryForIndex
(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:AbstractMongoSessionConverter
Returns query to be executed to return sessions based on a particular index.- Specified by:
getQueryForIndex
in 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:
convert
in classAbstractMongoSessionConverter
-
convert
@Nullable protected org.springframework.session.data.mongo.MongoSession convert(org.bson.Document source) - Specified by:
convert
in classAbstractMongoSessionConverter
-