org.glassfish.grizzly.http.server.Request.obtainSessionCookieName()方法的使用及代码示例

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

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

Request.obtainSessionCookieName介绍

暂无

代码示例

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * @return session cookie name, if not set default JSESSIONID name will be used
 */
public String getSessionCookieName() {
  return obtainSessionCookieName();
}

代码示例来源:origin: javaee/grizzly

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: javaee/grizzly

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: javaee/grizzly

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: javaee/grizzly

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: javaee/grizzly

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

代码示例来源:origin: javaee/grizzly

/**
 * Change the session id of the current session associated with this
 * request and return the new session id. 
 *
 * @return the original session id
 *
 * @throws IllegalStateException if there is no session associated
 * with the request
 *
 * @since 2.3
 */
public String changeSessionId() {
  Session sessionLocal = doGetSession(false);
  if (sessionLocal == null) {
    throw new IllegalStateException("changeSessionId has been called without a session");
  }
  String oldSessionId = getSessionManager().changeSessionId(this, sessionLocal);
  final String newSessionId = sessionLocal.getIdInternal();
  requestedSessionId = newSessionId;
  if (isRequestedSessionIdFromURL())
    return oldSessionId;
  if (response != null) {
    final Cookie cookie = new Cookie(obtainSessionCookieName(),
                     newSessionId);
    configureSessionCookie(cookie);
    response.addSessionCookieInternal(cookie);
  }
  return oldSessionId;
}

相关文章

微信公众号

最新文章

更多

Request类方法