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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromCookieHeader(String headerVal) static CookiefromSetCookieHeader(String headerVal) intgetName()getPath()getValue()inthashCode()booleanbooleanisSecure()setHttpOnly(boolean httpOnly) setSameSite(Cookie.SameSite sameSite) setSecure(boolean secure) static StringtoCookieHeader(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
-