org.eclipse.jetty.server.Server.getSessionIdManager()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.eclipse.jetty.server.Server.getSessionIdManager()方法的一些代码示例,展示了Server.getSessionIdManager()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.getSessionIdManager()方法的具体详情如下:
包路径:org.eclipse.jetty.server.Server
类名称:Server
方法名:getSessionIdManager

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;
}

相关文章