Class MongoSessionDataStoreFactory

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

public class MongoSessionDataStoreFactory extends org.eclipse.jetty.session.AbstractSessionDataStoreFactory
MongoSessionDataStoreFactory
  • Constructor Details

    • MongoSessionDataStoreFactory

      public MongoSessionDataStoreFactory()
  • Method Details

    • getHost

      public String getHost()
      Get the host.
      Returns:
      the host
    • setHost

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

      public int getPort()
      Get the port.
      Returns:
      the port
    • setPort

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

      public String getDbName()
      Get the dbName.
      Returns:
      the dbName
    • setDbName

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

      public String getConnectionString()
      Get the connectionString.
      Returns:
      the connectionString
    • setConnectionString

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

      public String getCollectionName()
      Get the collectionName.
      Returns:
      the collectionName
    • setCollectionName

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

      public org.eclipse.jetty.session.SessionDataStore getSessionDataStore(org.eclipse.jetty.session.SessionManager sessionManager) throws Exception
      Throws:
      Exception - UnknownHostException if any issue while resolving MongoDB Host
      See Also:
      • SessionDataStoreFactory.getSessionDataStore(SessionManager)