public class JacksonMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter
implementation using Jackson.EXPIRE_AT_FIELD_NAME
Constructor and Description |
---|
JacksonMongoSessionConverter() |
JacksonMongoSessionConverter(java.lang.Iterable<Module> modules) |
Modifier and Type | Method and Description |
---|---|
protected MongoExpiringSession |
convert(com.mongodb.DBObject source) |
protected com.mongodb.DBObject |
convert(MongoExpiringSession source) |
protected org.springframework.data.mongodb.core.query.Query |
getQueryForIndex(java.lang.String indexName,
java.lang.Object indexValue)
Returns query to be executed to return sessions based on a particular index.
|
convert, ensureIndexes, extractPrincipal, getConvertibleTypes
public JacksonMongoSessionConverter()
public JacksonMongoSessionConverter(java.lang.Iterable<Module> modules)
protected org.springframework.data.mongodb.core.query.Query getQueryForIndex(java.lang.String indexName, java.lang.Object indexValue)
AbstractMongoSessionConverter
getQueryForIndex
in class AbstractMongoSessionConverter
indexName
- name of the indexindexValue
- value to query againstprotected com.mongodb.DBObject convert(MongoExpiringSession source)
convert
in class AbstractMongoSessionConverter
protected MongoExpiringSession convert(com.mongodb.DBObject source)
convert
in class AbstractMongoSessionConverter