Class MongoSessionDataStoreFactory

  • All Implemented Interfaces:
    org.eclipse.jetty.server.session.SessionDataStoreFactory

    public class MongoSessionDataStoreFactory
    extends org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
    MongoSessionDataStoreFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCollectionName()  
      java.lang.String getConnectionString()  
      java.lang.String getDbName()  
      java.lang.String getHost()  
      int getPort()  
      org.eclipse.jetty.server.session.SessionDataStore getSessionDataStore​(org.eclipse.jetty.server.session.SessionHandler handler)  
      void setCollectionName​(java.lang.String collectionName)  
      void setConnectionString​(java.lang.String connectionString)  
      void setDbName​(java.lang.String dbName)  
      void setHost​(java.lang.String host)  
      void setPort​(int port)  
      • Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory

        getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MongoSessionDataStoreFactory

        public MongoSessionDataStoreFactory()
    • Method Detail

      • getHost

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

        public void setHost​(java.lang.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 java.lang.String getDbName()
        Returns:
        the dbName
      • setDbName

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

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

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

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

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

        public org.eclipse.jetty.server.session.SessionDataStore getSessionDataStore​(org.eclipse.jetty.server.session.SessionHandler handler)
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception - UnknownHostException if any issue while resolving MongoDB Host
        See Also:
        SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)