本文整理了Java中org.apache.catalina.connector.Connector.getEmptySessionPath()
方法的一些代码示例,展示了Connector.getEmptySessionPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connector.getEmptySessionPath()
方法的具体详情如下:
包路径:org.apache.catalina.connector.Connector
类名称:Connector
方法名:getEmptySessionPath
[英]Return the "empty session path" flag.
[中]返回“空会话路径”标志。
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat
public boolean isEmptySessionPath(){
return connector.getEmptySessionPath();
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6
public boolean getEmptySessionPath() {
return connector.getEmptySessionPath();
}
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* */ protected void configureSessionCookie(Cookie cookie)
/* */ {
/* 2339 */ cookie.setMaxAge(-1);
/* 2340 */ String contextPath = null;
/* 2341 */ if ((!this.connector.getEmptySessionPath()) && (getContext() != null)) {
/* 2342 */ contextPath = getContext().getEncodedPath();
/* */ }
/* 2344 */ if ((contextPath != null) && (contextPath.length() > 0))
/* 2345 */ cookie.setPath(contextPath);
/* */ else {
/* 2347 */ cookie.setPath("/");
/* */ }
/* 2349 */ if (isSecure())
/* 2350 */ cookie.setSecure(true);
/* */ }
/* */
代码示例来源:origin: tomcat/catalina
/**
* Configures the given JSESSIONID cookie.
*
* @param cookie The JSESSIONID cookie to be configured
*/
protected void configureSessionCookie(Cookie cookie) {
cookie.setMaxAge(-1);
String contextPath = null;
if (!connector.getEmptySessionPath() && (getContext() != null)) {
contextPath = getContext().getEncodedPath();
}
if ((contextPath != null) && (contextPath.length() > 0)) {
cookie.setPath(contextPath);
} else {
cookie.setPath("/");
}
if (isSecure()) {
cookie.setSecure(true);
}
}
代码示例来源:origin: tomcat/catalina
if (connector.getEmptySessionPath()
&& isRequestedSessionIdFromCookie()) {
session = manager.createSession(getRequestedSessionId());
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* 2308 */ if ((this.connector.getEmptySessionPath()) && (isRequestedSessionIdFromCookie()))
内容来源于网络,如有侵权,请联系作者删除!