org.apache.catalina.connector.Connector.getEmptySessionPath()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(121)

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

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()))

相关文章

Connector类方法