@Immutable public class Cookie extends Object implements Map.Entry<String,String>, Serializable
| 构造器和说明 |
|---|
Cookie(String domain,
String path,
String name,
String value,
long expiry,
boolean secure,
boolean hostOnly) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
boolean |
expired(long now)
If cookie is expired
|
String |
getDomain() |
long |
getExpiry() |
String |
getKey() |
String |
getName() |
String |
getPath() |
String |
getValue() |
int |
hashCode() |
boolean |
isHostOnly() |
boolean |
isSecure() |
String |
setValue(String value) |
String |
toString() |
comparingByKey, comparingByKey, comparingByValue, comparingByValuepublic boolean isSecure()
public long getExpiry()
public boolean expired(long now)
public boolean isHostOnly()
public boolean equals(Object o)
Copyright © 2017. All rights reserved.