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
MongoSessionDataStoreFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHost()
int
getPort()
getSessionDataStore
(SessionHandler handler) void
setCollectionName
(String collectionName) void
setConnectionString
(String connectionString) void
void
void
setPort
(int port) Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
-
Constructor Details
-
MongoSessionDataStoreFactory
public MongoSessionDataStoreFactory()
-
-
Method Details
-
getHost
- Returns:
- the host
-
setHost
- 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
- Returns:
- the dbName
-
setDbName
- Parameters:
dbName
- the dbName to set
-
getConnectionString
- Returns:
- the connectionString
-
setConnectionString
- Parameters:
connectionString
- the connection string to set. This has priority over dbHost and port
-
getCollectionName
- Returns:
- the collectionName
-
setCollectionName
- Parameters:
collectionName
- the collectionName to set
-
getSessionDataStore
- Throws:
Exception
-UnknownHostException
if any issue while resolving MongoDB Host- See Also:
-