org.mortbay.jetty.Request.getCookies()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(258)

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

Request.getCookies介绍

暂无

代码示例

代码示例来源:origin: feroult/yawp

  1. private String getAppengineCookie(Request request) {
  2. Cookie[] cookies = request.getCookies();
  3. if (cookies == null) {
  4. return null;
  5. }
  6. for (int i = 0; i < cookies.length; i++) {
  7. Cookie cookie = cookies[i];
  8. if (cookie.getName().equals(DEV_APPSERVER_LOGIN_COOKIE)) {
  9. return cookie.getValue();
  10. }
  11. }
  12. return null;
  13. }

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. Cookie[] cookies = request.getCookies();
  2. if (cookies == null || cookies.length == 0)
  3. _writer.write(" -");

代码示例来源:origin: org.mortbay.jetty/jetty-security

  1. public Credential getSingleSignOn(Request request, Response response)
  2. Cookie[] cookies = request.getCookies();
  3. for (int i = 0; cookies!=null && i < cookies.length; i++)

代码示例来源:origin: org.mortbay.jetty/com.springsource.org.mortbay.jetty.server

  1. public Credential getSingleSignOn(Request request, Response response)
  2. Cookie[] cookies = request.getCookies();
  3. for (int i = 0; cookies!=null && i < cookies.length; i++)

相关文章