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

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

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

Request.parseCookies介绍

[英]Parse cookies.
[中]解析cookies。

代码示例

代码示例来源:origin: tomcat/catalina

/**
 * Return the set of Cookies received with this Request.
 */
public Cookie[] getCookies() {
  if (!cookiesParsed)
    parseCookies();
  return cookies;
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed) {
    parseCookies();
  }
  return cookies;
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed) {
    parseCookies();
  }
  return cookies;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed)
    parseCookies();
  return cookies;
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Return the set of Cookies received with this Request.
 */
public Cookie[] getCookies() {
  if (!cookiesParsed)
    parseCookies();
  return cookies;
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed) {
    parseCookies();
  }
  return cookies;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed)
    parseCookies();
  return cookies;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed)
    parseCookies();
  return cookies;
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Return the set of Cookies received with this Request.
 */
public Cookie[] getCookies() {
  if (!cookiesParsed)
    parseCookies();
  return cookies;
}

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/*      */   public Cookie[] getCookies()
/*      */   {
/* 1804 */     if (!this.cookiesParsed) {
/* 1805 */       parseCookies();
/*      */     }
/* 1807 */     return this.cookies;
/*      */   }
/*      */

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
public void addCookie(Cookie cookie) {
  if (!cookiesParsed)
    parseCookies();
  int size = 0;
  if (cookies != null) {
    size = cookies.length;
  }
  Cookie[] newCookies = new Cookie[size + 1];
  for (int i = 0; i < size; i++) {
    newCookies[i] = cookies[i];
  }
  newCookies[size] = cookie;
  cookies = newCookies;
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
public void addCookie(Cookie cookie) {
  if (!cookiesParsed)
    parseCookies();
  int size = 0;
  if (cookies != null) {
    size = cookies.length;
  }
  Cookie[] newCookies = new Cookie[size + 1];
  for (int i = 0; i < size; i++) {
    newCookies[i] = cookies[i];
  }
  newCookies[size] = cookie;
  cookies = newCookies;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
public void addCookie(Cookie cookie) {
  if (!cookiesParsed)
    parseCookies();
  int size = 0;
  if (cookies != null) {
    size = cookies.length;
  }
  Cookie[] newCookies = new Cookie[size + 1];
  for (int i = 0; i < size; i++) {
    newCookies[i] = cookies[i];
  }
  newCookies[size] = cookie;
  cookies = newCookies;
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
public void addCookie(Cookie cookie) {
  if (!cookiesParsed) {
    parseCookies();
  }
  int size = 0;
  if (cookies != null) {
    size = cookies.length;
  }
  Cookie[] newCookies = new Cookie[size + 1];
  for (int i = 0; i < size; i++) {
    newCookies[i] = cookies[i];
  }
  newCookies[size] = cookie;
  cookies = newCookies;
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
public void addCookie(Cookie cookie) {
  if (!cookiesParsed) {
    parseCookies();
  }
  int size = 0;
  if (cookies != null) {
    size = cookies.length;
  }
  Cookie[] newCookies = new Cookie[size + 1];
  for (int i = 0; i < size; i++) {
    newCookies[i] = cookies[i];
  }
  newCookies[size] = cookie;
  cookies = newCookies;
}

代码示例来源:origin: tomcat/catalina

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
public void addCookie(Cookie cookie) {
  if (!cookiesParsed)
    parseCookies();
  int size = 0;
  if (cookies != null) {
    size = cookies.length;
  }
  Cookie[] newCookies = new Cookie[size + 1];
  for (int i = 0; i < size; i++) {
    newCookies[i] = cookies[i];
  }
  newCookies[size] = cookie;
  cookies = newCookies;
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Add a Cookie to the set of Cookies associated with this Request.
 *
 * @param cookie The new cookie
 */
@Override
public void addCookie(Cookie cookie) {
  // For compatibility only
  if (!cookiesParsed) {
    parseCookies();
  }
  cookies.add(cookie);
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
 * Return the set of Cookies received with this Request.
 */
@Override
public Cookie[] getCookies() {
  if (!cookiesParsed) {
    parseCookies();
  }
  if (cookies.size() == 0) {
    return null;
  }
  return cookies.toArray(new Cookie[cookies.size()]);
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Return the server representation of the cookies associated with this
 * request. Triggers parsing of the Cookie HTTP headers (but not conversion
 * to Cookie objects) if the headers have not yet been parsed.
 *
 * @return the server cookies
 */
public ServerCookies getServerCookies() {
  parseCookies();
  return coyoteRequest.getCookies();
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Return the server representation of the cookies associated with this
 * request. Triggers parsing of the Cookie HTTP headers (but not conversion
 * to Cookie objects) if the headers have not yet been parsed.
 *
 * @return the server cookies
 */
public ServerCookies getServerCookies() {
  parseCookies();
  return coyoteRequest.getCookies();
}

相关文章

Request类方法