本文整理了Java中org.glassfish.grizzly.http.server.Request.setSessionCookieName
方法的一些代码示例,展示了Request.setSessionCookieName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setSessionCookieName
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.server.Request
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!