本文整理了Java中org.eclipse.jetty.server.Server.getSessionIdManager()
方法的一些代码示例,展示了Server.getSessionIdManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getSessionIdManager()
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Server
类名称:Server
方法名:getSessionIdManager
暂无
代码示例来源:origin: stackoverflow.com
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.session.HashSessionIdManager;
import org.eclipse.jetty.server.session.JDBCSessionManager;
public class ScoopSessionManager extends JDBCSessionManager {
@Override
public void doStart() throws Exception {
final Server server = getSessionHandler().getServer();
_sessionIdManager = server.getSessionIdManager();
if (_sessionIdManager == null) {
_sessionIdManager = new HashSessionIdManager();
server.setSessionIdManager(_sessionIdManager);
}
super.doStart();
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: Nextdoor/bender
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: org.eclipse.jetty/server
synchronized (server)
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: jenkinsci/winstone
_sessionIdManager=server.getSessionIdManager();
if (_sessionIdManager==null)
代码示例来源:origin: apache/tapestry-5
private JettyRunner configureClusteredJetty(String name, int port) throws Exception
{
JettyRunner runner = new JettyRunner();
runner.configure("src/test/cluster", "", port, port + 100);
JDBCSessionIdManager idMgr = new JDBCSessionIdManager(runner.getServer());
idMgr.setWorkerName(name);
idMgr.setDriverInfo("org.hsqldb.jdbcDriver", "jdbc:hsqldb:mem:clustertest");
Server server = runner.getServer();
server.setSessionIdManager(idMgr);
WebAppContext wac = (WebAppContext) server.getHandler();
JDBCSessionManager jdbcMgr = new JDBCSessionManager();
jdbcMgr.setIdManager(server.getSessionIdManager());
// force the session to be read from the database with no delay
// This is an incorrectly documented feature.
jdbcMgr.setSaveInterval(0);
wac.setSessionHandler(new SessionHandler(jdbcMgr));
wac.getServletContext().setInitParameter("cluster.name", name);
runner.start();
return runner;
}
内容来源于网络,如有侵权,请联系作者删除!