public class ForestCookie extends Object implements Serializable
Constructor and Description |
---|
ForestCookie(String name,
String value,
Date createTime,
Duration maxAge,
String domain,
String path,
boolean secure,
boolean httpOnly,
boolean hostOnly,
boolean persistent) |
Modifier and Type | Method and Description |
---|---|
static ForestCookie |
createFromHttpclientCookie(org.apache.http.cookie.Cookie httpCookie) |
static ForestCookie |
createFromOkHttpCookie(okhttp3.Cookie okCookie) |
Date |
getCreateTime() |
String |
getDomain() |
long |
getExpiresTime() |
Duration |
getMaxAge() |
String |
getName() |
String |
getPath() |
String |
getValue() |
boolean |
isHostOnly() |
boolean |
isHttpOnly() |
boolean |
isSecure() |
boolean |
matchDomain(String domain) |
static boolean |
matchDomain(String leftDomain,
String rightDomain) |
boolean |
matchPath(String path) |
static boolean |
matchPath(String leftPath,
String rightPath) |
static ForestCookie |
parse(String url,
String setCookie) |
void |
setValue(String value) |
String |
toString() |
public String getName()
public String getValue()
public Date getCreateTime()
public Duration getMaxAge()
public String getDomain()
public String getPath()
public boolean isSecure()
public boolean isHttpOnly()
public boolean isHostOnly()
public boolean matchDomain(String domain)
public boolean matchPath(String path)
public void setValue(String value)
public static ForestCookie createFromHttpclientCookie(org.apache.http.cookie.Cookie httpCookie)
public static ForestCookie createFromOkHttpCookie(okhttp3.Cookie okCookie)
public static ForestCookie parse(String url, String setCookie)
public long getExpiresTime()
Copyright © 2020. All rights reserved.