public class Cookie extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
comment |
private String |
domain |
private Date |
expires |
private boolean |
httpOnly |
private int |
maxAge |
private String |
name |
private String |
path |
private boolean |
secure |
private String |
value |
private int |
version |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getComment() |
String |
getDomain() |
Date |
getExpires() |
Integer |
getMaxAge() |
String |
getName() |
String |
getPath() |
String |
getValue() |
int |
getVersion() |
boolean |
isHttpOnly() |
boolean |
isSecure() |
Cookie |
setComment(String comment) |
Cookie |
setDomain(String domain) |
Cookie |
setExpires(Date expires) |
Cookie |
setHttpOnly(boolean httpOnly) |
Cookie |
setMaxAge(Integer maxAge) |
Cookie |
setPath(String path) |
Cookie |
setSecure(boolean secure) |
Cookie |
setValue(String value) |
Cookie |
setVersion(int version) |
String |
toString() |
private final String name
private String value
private String path
private String domain
private int maxAge
private Date expires
private boolean secure
private boolean httpOnly
private int version
private String comment
public String getName()
public String getValue()
public String getPath()
public String getDomain()
public Integer getMaxAge()
public boolean isSecure()
public Cookie setSecure(boolean secure)
public int getVersion()
public Cookie setVersion(int version)
public boolean isHttpOnly()
public Cookie setHttpOnly(boolean httpOnly)
public Date getExpires()
public String getComment()
Copyright © 2023. All rights reserved.