本文整理了Java中org.apache.http.cookie.Cookie.getCommentURL()
方法的一些代码示例,展示了Cookie.getCommentURL()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cookie.getCommentURL()
方法的具体详情如下:
包路径:org.apache.http.cookie.Cookie
类名称:Cookie
方法名:getCommentURL
[英]If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described by the information at this URL.
[中]如果用户代理(web浏览器)将此cookie呈现给用户,则此URL上的信息将描述cookie的用途。
代码示例来源:origin: org.apache.knox/gateway-spi
@Override
public String getCommentURL() {
return delegate.getCommentURL();
}
代码示例来源:origin: apache/knox
@Override
public String getCommentURL() {
return delegate.getCommentURL();
}
代码示例来源:origin: slartus/4pdaClient-plus
public String getCommentURL() {
return cookie.getCommentURL();
}
代码示例来源:origin: org.esigate/esigate-core
private String toString(Cookie cookie) {
StringBuilder result = new StringBuilder(Parameters.SMALL_BUFFER_SIZE);
result.append(cookie.getName());
result.append("=");
result.append(cookie.getValue());
if (cookie.getDomain() != null) {
result.append(";domain=");
result.append(cookie.getDomain());
}
if (cookie.getPath() != null) {
result.append(";path=");
result.append(cookie.getPath());
}
if (cookie.getExpiryDate() != null) {
result.append(";expires=");
result.append(cookie.getExpiryDate());
}
if (cookie.getCommentURL() != null) {
result.append(";comment=");
result.append(cookie.getComment());
}
if (cookie.getCommentURL() != null) {
result.append(";comment=");
result.append(cookie.getCommentURL());
}
return result.toString();
}
内容来源于网络,如有侵权,请联系作者删除!