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

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

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

Request.getCookies介绍

[英]Return the set of Cookies received with this Request.
[中]返回与此请求一起收到的cookie集。

代码示例

代码示例来源:origin: magro/memcached-session-manager

protected void logDebugRequestSessionCookie( final Request request ) {
  final Cookie[] cookies = request.getCookies();
  if ( cookies == null ) {
    return;
  }
  for( final javax.servlet.http.Cookie cookie : cookies ) {
    if ( cookie.getName().equals( _sessionCookieName ) ) {
      _log.debug( "Have request session cookie: domain=" + cookie.getDomain() + ", maxAge=" + cookie.getMaxAge() +
          ", path=" + cookie.getPath() + ", value=" + cookie.getValue() +
          ", version=" + cookie.getVersion() + ", secure=" + cookie.getSecure() );
    }
  }
}

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

@Override
  public Cookie[] run() {
    return request.getCookies();
  }
}

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

@Override
  public Cookie[] run() {
    return request.getCookies();
  }
}

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

@Override
  public Cookie[] run() {
    return request.getCookies();
  }
}

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

@Override
  public Cookie[] run() {       
    return request.getCookies();
  }           
}

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

@Override
  public Cookie[] run() {       
    return request.getCookies();
  }           
}

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

@Override
  public Cookie[] run() {
    return request.getCookies();
  }
}

代码示例来源:origin: com.springsource.insight/insight-collection-tcserver

Cookie[] getCookiesForRequest(Request request) {
    Cookie[] res = request.getCookies();
    if (res == null) {
      res = EMPTY_COOKIE_ARRAY;
    }
    return res;
  }
}

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

@Override
  public Cookie[] run() {
    return request.getCookies();
  }
}

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

@Override
  public Cookie[] run() {       
    return request.getCookies();
  }           
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    Cookie[] c = request.getCookies();
    for (int i = 0; c != null && i < c.length; i++) {
      if (name.equals(c[i].getName())) {
        buf.append(wrap(c[i].getValue()));
      }
    }
  }
}

相关文章

Request类方法