public class MongoSessionDataStoreFactory extends AbstractSessionDataStoreFactory
Constructor and Description |
---|
MongoSessionDataStoreFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionName() |
String |
getConnectionString() |
String |
getDbName() |
String |
getHost() |
int |
getPort() |
SessionDataStore |
getSessionDataStore(SessionHandler handler) |
void |
setCollectionName(String collectionName) |
void |
setConnectionString(String connectionString) |
void |
setDbName(String dbName) |
void |
setHost(String host) |
void |
setPort(int port) |
getGracePeriodSec, setGracePeriodSec
public String getHost()
public void setHost(String host)
host
- the host to setpublic int getPort()
public void setPort(int port)
port
- the port to setpublic String getDbName()
public void setDbName(String dbName)
dbName
- the dbName to setpublic String getConnectionString()
public void setConnectionString(String connectionString)
connectionString
- the connection string to set. This has priority over dbHost and portpublic String getCollectionName()
public void setCollectionName(String collectionName)
collectionName
- the collectionName to setpublic SessionDataStore getSessionDataStore(SessionHandler handler) throws Exception
com.mongodb.MongoException
UnknownHostException
Exception
SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)
Copyright © 1995–2017 Webtide. All rights reserved.