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 HttpCookie
HttpCookie.Builder, HttpCookie.Immutable, HttpCookie.JavaNetHttpCookie, HttpCookie.SameSite, HttpCookie.Wrapper -
Field Summary
Fields inherited from interface 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 interface HttpCookie
getComment, getDomain, getExpires, getMaxAge, getPath, getSameSite, isExpired, isHttpOnly, isPartitioned, isSecure
-
Method Details
-
getName
- Specified by:
getNamein interfaceHttpCookie- Returns:
- the cookie name
-
getValue
- Specified by:
getValuein interfaceHttpCookie- Returns:
- the cookie value
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceHttpCookie- Returns:
- the value of the
Versionattribute
-
getAttributes
- Specified by:
getAttributesin interfaceHttpCookie- Returns:
- the attributes associated with this cookie
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceHttpCookie- Overrides:
hashCodein classObject- Returns:
- the cookie hash code
- See Also:
-
equals
- Specified by:
equalsin interfaceHttpCookie- Overrides:
equalsin classObject- Parameters:
obj- the object to test for equality- Returns:
- whether this cookie is equal to the given object
- See Also:
-
toString
-