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

public class JacksonMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter implementation using Jackson.
Since:
1.2
  • Constructor Details

    • JacksonMongoSessionConverter

      public JacksonMongoSessionConverter()
    • JacksonMongoSessionConverter

      public JacksonMongoSessionConverter(Iterable<com.fasterxml.jackson.databind.Module> modules)
    • 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 class AbstractMongoSessionConverter
      Parameters:
      indexName - name of the index
      indexValue - 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 class AbstractMongoSessionConverter
    • convert

      @Nullable protected org.springframework.session.data.mongo.MongoSession convert(org.bson.Document source)
      Specified by:
      convert in class AbstractMongoSessionConverter