Class MongoSessionDataStoreFactory
java.lang.Object
org.eclipse.jetty.session.AbstractSessionDataStoreFactory
org.eclipse.jetty.nosql.mongodb.MongoSessionDataStoreFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the collectionName.Get the connectionString.Get the dbName.getHost()
Get the host.int
getPort()
Get the port.getSessionDataStore
(SessionManager sessionManager) void
setCollectionName
(String collectionName) Set the collectionName to set.void
setConnectionString
(String connectionString) Set the connection string to set.void
Set the dbName to set.void
Set the host to set.void
setPort
(int port) Set the port to set.Methods inherited from class org.eclipse.jetty.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
Constructor Details
-
MongoSessionDataStoreFactory
public MongoSessionDataStoreFactory()
-
-
Method Details
-
getHost
-
setHost
-
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
-
setDbName
-
getConnectionString
-
setConnectionString
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
-
setCollectionName
Set the collectionName to set.- Parameters:
collectionName
- the collectionName to set
-
getSessionDataStore
- Throws:
Exception
-UnknownHostException
if any issue while resolving MongoDB Host- See Also:
-