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

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

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

Request.getCookies介绍

暂无

代码示例

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

private String getAppengineCookie(Request request) {
  Cookie[] cookies = request.getCookies();
  if (cookies == null) {
    return null;
  }
  for (int i = 0; i < cookies.length; i++) {
    Cookie cookie = cookies[i];
    if (cookie.getName().equals(DEV_APPSERVER_LOGIN_COOKIE)) {
      return cookie.getValue();
    }
  }
  return null;
}

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

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

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

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

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

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

相关文章