Package org.eclipse.jetty.http
Class HttpCookie.JavaNetHttpCookie
java.lang.Object
org.eclipse.jetty.http.HttpCookie.JavaNetHttpCookie
- All Implemented Interfaces:
HttpCookie
- Enclosing interface:
- HttpCookie
A HttpCookie
that wraps a HttpCookie
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpCookie
HttpCookie.Builder, HttpCookie.Immutable, HttpCookie.JavaNetHttpCookie, HttpCookie.SameSite, HttpCookie.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.http.HttpCookie
COMMENT_ATTRIBUTE, DOMAIN_ATTRIBUTE, EXPIRES_ATTRIBUTE, HTTP_ONLY_ATTRIBUTE, MAX_AGE_ATTRIBUTE, PARTITIONED_ATTRIBUTE, PATH_ATTRIBUTE, SAME_SITE_ATTRIBUTE, SECURE_ATTRIBUTE
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.HttpCookie
getExpires, getSameSite, isExpired, isPartitioned
-
Method Details
-
getComment
Description copied from interface:HttpCookie
Equivalent to
getAttributes().get(COMMENT_ATTRIBUTE)
.- Specified by:
getComment
in interfaceHttpCookie
- Returns:
- the value of the
Comment
attribute - See Also:
-
getDomain
Description copied from interface:HttpCookie
Equivalent to
getAttributes().get(DOMAIN_ATTRIBUTE)
.- Specified by:
getDomain
in interfaceHttpCookie
- Returns:
- the value of the
Domain
attribute - See Also:
-
getMaxAge
public long getMaxAge()- Specified by:
getMaxAge
in interfaceHttpCookie
- Returns:
- the value of the
Max-Age
attribute, in seconds, or-1
if not present - See Also:
-
getPath
Description copied from interface:HttpCookie
Equivalent to
getAttributes().get(PATH_ATTRIBUTE)
.- Specified by:
getPath
in interfaceHttpCookie
- Returns:
- the value of the
Path
attribute - See Also:
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfaceHttpCookie
- Returns:
- whether the
Secure
attribute is present - See Also:
-
getName
- Specified by:
getName
in interfaceHttpCookie
- Returns:
- the cookie name
-
getValue
- Specified by:
getValue
in interfaceHttpCookie
- Returns:
- the cookie value
-
getVersion
public int getVersion()- Specified by:
getVersion
in interfaceHttpCookie
- Returns:
- the value of the
Version
attribute
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnly
in interfaceHttpCookie
- Returns:
- whether the
HttpOnly
attribute is present - See Also:
-
getAttributes
- Specified by:
getAttributes
in interfaceHttpCookie
- Returns:
- the attributes associated with this cookie
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceHttpCookie
- Overrides:
hashCode
in classObject
- Returns:
- the cookie hash code
- See Also:
-
equals
- Specified by:
equals
in interfaceHttpCookie
- Overrides:
equals
in classObject
- Parameters:
obj
- the object to test for equality- Returns:
- whether this cookie is equal to the given object
- See Also:
-
toString
-