org.mozilla.zest.core.v1.ZestCookie.isSecure()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(71)

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

ZestCookie.isSecure介绍

暂无

代码示例

代码示例来源:origin: mozilla/zest

/** @deprecated (0.14.0) Use {@link #getZestCookies()} instead. */
@Deprecated
public List<Cookie> getCookies() {
  List<Cookie> cookies = new ArrayList<>();
  for (ZestCookie cookie : this.cookies) {
    cookies.add(
        new Cookie(
            cookie.getDomain(),
            cookie.getName(),
            cookie.getValue(),
            cookie.getPath(),
            cookie.getExpiryDate(),
            cookie.isSecure()));
  }
  return cookies;
}

代码示例来源:origin: mozilla/zest

assertTrue(cookie.getPath().equals(cookie2.getPath()));
assertTrue(cookie.getExpiryDate().equals(cookie2.getExpiryDate()));
assertTrue(cookie.isSecure() == cookie2.isSecure());

代码示例来源:origin: mozilla/zest

zestCookie.getPath(),
        zestCookie.getExpiryDate(),
        zestCookie.isSecure());
httpclient.getState().addCookie(cookie);

代码示例来源:origin: mozilla/zest

@Override
public ZestRequest deepCopy() {
  ZestRequest zr = new ZestRequest(this.getIndex());
  zr.setUrl(this.url);
  zr.setUrlToken(this.urlToken);
  zr.setData(this.data);
  zr.setMethod(this.method);
  zr.setHeaders(this.headers);
  zr.setFollowRedirects(this.followRedirects);
  zr.setTimestamp(this.timestamp);
  if (this.getResponse() != null) {
    zr.setResponse(this.getResponse().deepCopy());
  }
  for (ZestAssertion zt : this.getAssertions()) {
    zr.addAssertion((ZestAssertion) zt.deepCopy());
  }
  for (ZestCookie cookie : this.cookies) {
    zr.addCookie(
        new ZestCookie(
            cookie.getDomain(),
            cookie.getName(),
            cookie.getValue(),
            cookie.getPath(),
            cookie.getExpiryDate(),
            cookie.isSecure()));
  }
  zr.setEnabled(this.isEnabled());
  return zr;
}

相关文章