Package org.eclipse.jetty.nosql.mongodb
Class MongoSessionDataStoreFactory
- java.lang.Object
-
- org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
-
- org.eclipse.jetty.nosql.mongodb.MongoSessionDataStoreFactory
-
- All Implemented Interfaces:
SessionDataStoreFactory
public class MongoSessionDataStoreFactory extends AbstractSessionDataStoreFactory
MongoSessionDataStoreFactory
-
-
Constructor Summary
Constructors Constructor Description MongoSessionDataStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCollectionName()java.lang.StringgetConnectionString()java.lang.StringgetDbName()java.lang.StringgetHost()intgetPort()SessionDataStoregetSessionDataStore(SessionHandler handler)voidsetCollectionName(java.lang.String collectionName)voidsetConnectionString(java.lang.String connectionString)voidsetDbName(java.lang.String dbName)voidsetHost(java.lang.String host)voidsetPort(int port)-
Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
-
-
-
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 SessionDataStore getSessionDataStore(SessionHandler handler) throws java.lang.Exception
- Throws:
java.lang.Exception-UnknownHostExceptionif any issue while resolving MongoDB Host- See Also:
SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)
-
-