Package org.eclipse.jetty.http
Class HttpCookie.Immutable
java.lang.Object
org.eclipse.jetty.http.HttpCookie.Immutable
- All Implemented Interfaces:
HttpCookie
- Enclosing interface:
- HttpCookie
Immutable implementation of 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
getComment, getDomain, getExpires, getMaxAge, getPath, getSameSite, isExpired, isHttpOnly, isPartitioned, isSecure
-
Method Details
-
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
-
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
-