Package org.miaixz.bus.http
Class Cookie
java.lang.Object
org.miaixz.bus.http.Cookie
Cookie's相关工具支持 这个类不支持cookies上的附加属性,比如Chromium的Priority=HIGH extension
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondomain()booleanlonginthashCode()booleanhostOnly()booleanhttpOnly()booleanReturns true if this cookie should be included on a request tourl.name()static CookieReturns all of the cookies from a set of HTTP response headers.path()booleanbooleansecure()toString()value()
-
Method Details
-
parse
-
parseAll
Returns all of the cookies from a set of HTTP response headers. -
name
-
value
-
persistent
public boolean persistent() -
expiresAt
public long expiresAt() -
hostOnly
public boolean hostOnly() -
domain
-
path
-
httpOnly
public boolean httpOnly() -
secure
public boolean secure() -
matches
Returns true if this cookie should be included on a request tourl. In addition to this check callers should also confirm that this cookie has not expired. -
toString
-
equals
-
hashCode
public int hashCode()
-