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

x33g5p2x  于2022-01-28 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(285)

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

Request.getSession介绍

暂无

代码示例

代码示例来源:origin: jphp-group/jphp

@Signature
public String sessionId() {
  return request.getSession(true).getId();
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

@Override
public HttpSession getSession()
{
  return getSession(true);
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

@Override
public HttpSession getSession()
{
  return getSession(true);
}

代码示例来源:origin: jenkinsci/winstone

@Override
public HttpSession getSession()
{
  return getSession(true);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public HttpSession getSession()
{
  return getSession(true);
}

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

@Override
protected String changeHttpSessionId(boolean create) {
  HttpSession session = request.getSession(create);
  return session != null ? session.getId() : null;
}

代码示例来源:origin: org.keycloak/keycloak-jetty-core

@Override
protected String changeHttpSessionId(boolean create) {
  HttpSession session = request.getSession(create);
  return session != null ? session.getId() : null;
}

代码示例来源:origin: org.keycloak/keycloak-jetty-core

@Override
public void logout() {
  HttpSession session = request.getSession(false);
  if (session != null) {
    session.removeAttribute(KeycloakSecurityContext.class.getName());
  }
}

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

@Override
public void logout() {
  HttpSession session = request.getSession(false);
  if (session != null) {
    session.removeAttribute(KeycloakSecurityContext.class.getName());
  }
}

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

@Override
  protected String changeHttpSessionId(boolean create) {
    Request request = this.request;
    HttpSession session = request.getSession(false);
    if (session == null) {
      return request.getSession(true).getId();
    }
    if (!deployment.isTurnOffChangeSessionIdOnLogin()) return request.changeSessionId();
    else return session.getId();
  }
}

代码示例来源:origin: org.keycloak/keycloak-jetty-core

@Override
public void saveAccountInfo(OidcKeycloakAccount account) {
  RefreshableKeycloakSecurityContext securityContext = (RefreshableKeycloakSecurityContext) account.getKeycloakSecurityContext();
  request.getSession().setAttribute(KeycloakSecurityContext.class.getName(), securityContext);
}

代码示例来源:origin: org.keycloak/keycloak-jetty94-adapter

@Override
  protected String changeHttpSessionId(boolean create) {
    Request request = this.request;
    HttpSession session = request.getSession(false);
    if (session == null) {
      return request.getSession(true).getId();
    }
    if (!deployment.isTurnOffChangeSessionIdOnLogin()) return request.changeSessionId();
    else return session.getId();
  }
}

代码示例来源:origin: org.keycloak/spring-boot-container-bundle

@Override
public void saveAccountInfo(OidcKeycloakAccount account) {
  RefreshableKeycloakSecurityContext securityContext = (RefreshableKeycloakSecurityContext) account.getKeycloakSecurityContext();
  request.getSession().setAttribute(KeycloakSecurityContext.class.getName(), securityContext);
}

代码示例来源:origin: org.keycloak/keycloak-jetty92-adapter

@Override
  protected String changeHttpSessionId(boolean create) {
    Request request = this.request;
    HttpSession session = request.getSession(false);
    if (session == null) {
      return request.getSession(true).getId();
    }
    if (!deployment.isTurnOffChangeSessionIdOnLogin()) return request.changeSessionId();
    else return session.getId();
  }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

@Override
public boolean isRequestedSessionIdValid()
{
  if (_requestedSessionId == null)
    return false;
  HttpSession session = getSession(false);
  return (session != null && _sessionManager.getSessionIdManager().getClusterId(_requestedSessionId).equals(_sessionManager.getClusterId(session)));
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

public boolean isRequestedSessionIdValid()
{
  if (_requestedSessionId == null)
    return false;
  HttpSession session = getSession(false);
  return (session != null && _sessionManager.getSessionIdManager().getClusterId(_requestedSessionId).equals(_sessionManager.getClusterId(session)));
}

代码示例来源:origin: Nextdoor/bender

@Override
public boolean isRequestedSessionIdValid()
{
  if (_requestedSessionId == null)
    return false;
  HttpSession session = getSession(false);
  return (session != null && _sessionManager.getSessionIdManager().getClusterId(_requestedSessionId).equals(_sessionManager.getClusterId(session)));
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

public boolean isRequestedSessionIdValid()
{
  if (_requestedSessionId == null)
    return false;
  HttpSession session = getSession(false);
  return (session != null && _sessionManager.getSessionIdManager().getClusterId(_requestedSessionId).equals(_sessionManager.getClusterId(session)));
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

public boolean isRequestedSessionIdValid()
{
  if (_requestedSessionId == null)
    return false;
  HttpSession session = getSession(false);
  return (session != null && _sessionManager.getSessionIdManager().getClusterId(_requestedSessionId).equals(_sessionManager.getClusterId(session)));
}

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

public boolean isRequestedSessionIdValid()
{
  if (_requestedSessionId == null)
    return false;
  HttpSession session = getSession(false);
  return (session != null && _sessionManager.getSessionIdManager().getClusterId(_requestedSessionId).equals(_sessionManager.getClusterId(session)));
}

相关文章

Request类方法