public class Cookie extends Object implements Comparable<Cookie>
Constructor and Description |
---|
Cookie(String domain,
String name,
String value,
String path,
int maxAge,
boolean secure) |
Cookie(String domain,
String name,
String value,
String path,
int maxAge,
boolean secure,
int version) |
Cookie(String domain,
String name,
String value,
String rawValue,
String path,
int maxAge,
boolean secure,
int version,
boolean httpOnly,
boolean discard,
String comment,
String commentUrl,
Iterable<Integer> ports) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Cookie c) |
String |
getComment() |
String |
getCommentUrl() |
String |
getDomain() |
int |
getMaxAge() |
String |
getName() |
String |
getPath() |
Set<Integer> |
getPorts() |
String |
getRawValue() |
String |
getValue() |
int |
getVersion() |
boolean |
isDiscard() |
boolean |
isHttpOnly() |
boolean |
isSecure() |
void |
setPorts(int... ports)
Deprecated.
|
void |
setPorts(Iterable<Integer> ports)
Deprecated.
|
String |
toString() |
public Cookie(String domain, String name, String value, String path, int maxAge, boolean secure)
public Cookie(String domain, String name, String value, String path, int maxAge, boolean secure, int version)
public String getDomain()
public String getName()
public String getValue()
public String getRawValue()
public String getPath()
public int getMaxAge()
public boolean isSecure()
public int getVersion()
public String getComment()
public String getCommentUrl()
public boolean isHttpOnly()
public boolean isDiscard()
@Deprecated public void setPorts(int... ports)
@Deprecated public void setPorts(Iterable<Integer> ports)
public int compareTo(Cookie c)
compareTo
in interface Comparable<Cookie>
Copyright © 2013. All rights reserved.