Package org.eclipse.jetty.nosql.mongodb
Class MongoSessionDataStoreFactory
java.lang.Object
org.eclipse.jetty.session.AbstractSessionDataStoreFactory
org.eclipse.jetty.nosql.mongodb.MongoSessionDataStoreFactory
- All Implemented Interfaces:
SessionDataStoreFactory
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
Get the host.- Returns:
- the host
-
setHost
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
Get the dbName.- Returns:
- the dbName
-
setDbName
Set the dbName to set.- Parameters:
dbName
- the dbName to set
-
getConnectionString
Get the connectionString.- Returns:
- the connectionString
-
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
Get the collectionName.- Returns:
- the collectionName
-
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:
-