Package com.yahoo.jdisc.http
Class Cookie
java.lang.Object
com.yahoo.jdisc.http.Cookie
A RFC 6265 compliant cookie.
Note: RFC 2109 and RFC 2965 is no longer supported. All fields that are not part of RFC 6265 are deprecated.
- Author:
- Einar M R Rosenvinge, bjorncs
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fromCookieHeader
(String headerVal) static Cookie
fromSetCookieHeader
(String headerVal) int
getName()
getPath()
getValue()
int
hashCode()
boolean
boolean
isSecure()
setHttpOnly
(boolean httpOnly) setSameSite
(Cookie.SameSite sameSite) setSecure
(boolean secure) static String
toCookieHeader
(Iterable<? extends Cookie> cookies) toSetCookieHeaders
(Iterable<? extends Cookie> cookies) toString()
-
Constructor Details
-
Cookie
public Cookie() -
Cookie
-
Cookie
-
-
Method Details
-
getName
-
setName
-
getValue
-
setValue
-
getDomain
-
setDomain
-
getPath
-
setPath
-
getSameSite
-
setSameSite
-
getMaxAge
-
setMaxAge
-
isSecure
public boolean isSecure() -
setSecure
-
isHttpOnly
public boolean isHttpOnly() -
setHttpOnly
-
equals
-
hashCode
public int hashCode() -
toString
-
toCookieHeader
-
fromCookieHeader
-
toSetCookieHeaders
-
fromSetCookieHeader
-