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.String
getCollectionName()
java.lang.String
getConnectionString()
java.lang.String
getDbName()
java.lang.String
getHost()
int
getPort()
SessionDataStore
getSessionDataStore(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
-
-
-
-
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
-UnknownHostException
if any issue while resolving MongoDB Host- See Also:
SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)
-
-