Class MongoSessionDataStoreFactory

java.lang.Object
org.eclipse.jetty.session.AbstractSessionDataStoreFactory
org.eclipse.jetty.nosql.mongodb.MongoSessionDataStoreFactory
All Implemented Interfaces:
SessionDataStoreFactory

public class MongoSessionDataStoreFactory extends AbstractSessionDataStoreFactory
MongoSessionDataStoreFactory
  • Constructor Details

    • MongoSessionDataStoreFactory

      public MongoSessionDataStoreFactory()
  • Method Details

    • getHost

      public String getHost()
      Returns:
      the host
    • setHost

      public void setHost(String host)
      Parameters:
      host - the host to set
    • getPort

      public int getPort()
      Returns:
      the port
    • setPort

      public void setPort(int port)
      Parameters:
      port - the port to set
    • getDbName

      public String getDbName()
      Returns:
      the dbName
    • setDbName

      public void setDbName(String dbName)
      Parameters:
      dbName - the dbName to set
    • getConnectionString

      public String getConnectionString()
      Returns:
      the connectionString
    • setConnectionString

      public void setConnectionString(String connectionString)
      Parameters:
      connectionString - the connection string to set. This has priority over dbHost and port
    • getCollectionName

      public String getCollectionName()
      Returns:
      the collectionName
    • setCollectionName

      public void setCollectionName(String collectionName)
      Parameters:
      collectionName - the collectionName to set
    • getSessionDataStore

      public SessionDataStore getSessionDataStore(SessionManager sessionManager) throws Exception
      Throws:
      Exception - UnknownHostException if any issue while resolving MongoDB Host
      See Also: