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

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

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

Request.setSessionCookieName介绍

[英]Set the session cookie name, if not set default JSESSIONID name will be used
[中]设置会话cookie名称,如果未设置,将使用默认的JSESSIONID名称

代码示例

代码示例来源:origin: stackoverflow.com

import org.glassfish.grizzly.http.server.Request;

/**
 * Until the session cookie can be defined in the Grizzly {@link HttpServer},
 * it will be set here.
 * <p>
 * The filter's priority ensures it gets executed before filters with 
 * {@link Priorities#AUTHENTICATION}.
 * 
 * @author hank
 */
@Provider
@Priority(300)  // less than 1000
@PreMatching
public class SessionCookieFilter implements ContainerRequestFilter {

  @Inject
  javax.inject.Provider<Request> requestProvider;

  @Inject
  Config config;

  @Override
  public void filter(ContainerRequestContext requestContext) throws IOException {
    Request request = requestProvider.get();
    request.setSessionCookieName(config.getSessionCookieName());
  }

}

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

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

request.setSessionCookieName(getSessionCookieName());
request.setSessionManager(getSessionManager(request));
response.setErrorPageGenerator(getErrorPageGenerator(request));

相关文章

Request类方法