public class JdkMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter
implementation using standard Java serialization.EXPIRE_AT_FIELD_NAME
Constructor and Description |
---|
JdkMongoSessionConverter() |
JdkMongoSessionConverter(org.springframework.core.convert.converter.Converter<java.lang.Object,byte[]> serializer,
org.springframework.core.convert.converter.Converter<byte[],java.lang.Object> deserializer) |
Modifier and Type | Method and Description |
---|---|
protected MongoExpiringSession |
convert(com.mongodb.DBObject sessionWrapper) |
protected com.mongodb.DBObject |
convert(MongoExpiringSession session) |
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 JdkMongoSessionConverter()
public JdkMongoSessionConverter(org.springframework.core.convert.converter.Converter<java.lang.Object,byte[]> serializer, org.springframework.core.convert.converter.Converter<byte[],java.lang.Object> deserializer)
public 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 session)
convert
in class AbstractMongoSessionConverter
protected MongoExpiringSession convert(com.mongodb.DBObject sessionWrapper)
convert
in class AbstractMongoSessionConverter