Class HttpCookie.Wrapper
java.lang.Object
org.eclipse.jetty.http.HttpCookie.Wrapper
- All Implemented Interfaces:
HttpCookie
- Enclosing interface:
HttpCookie
A wrapper for HttpCookie instances.
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquivalent togetAttributes().get(COMMENT_ATTRIBUTE).Equivalent togetAttributes().get(DOMAIN_ATTRIBUTE).longgetName()getPath()Equivalent togetAttributes().get(PATH_ATTRIBUTE).getValue()intinthashCode()booleanbooleanbooleanbooleanisSecure()toString()
-
Constructor Details
-
Wrapper
-
-
Method Details
-
getWrapped
-
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
-
getExpires
- Specified by:
getExpiresin interfaceHttpCookie- Returns:
- the value of the
Expiresattribute, ornullif not present - See Also:
-
getMaxAge
public long getMaxAge()- Specified by:
getMaxAgein interfaceHttpCookie- Returns:
- the value of the
Max-Ageattribute, in seconds, or-1if not present - See Also:
-
isExpired
public boolean isExpired()- Specified by:
isExpiredin interfaceHttpCookie- Returns:
- whether the cookie is expired
-
getComment
Description copied from interface:HttpCookieEquivalent to
getAttributes().get(COMMENT_ATTRIBUTE).- Specified by:
getCommentin interfaceHttpCookie- Returns:
- the value of the
Commentattribute - See Also:
-
getDomain
Description copied from interface:HttpCookieEquivalent to
getAttributes().get(DOMAIN_ATTRIBUTE).- Specified by:
getDomainin interfaceHttpCookie- Returns:
- the value of the
Domainattribute - See Also:
-
getPath
Description copied from interface:HttpCookieEquivalent to
getAttributes().get(PATH_ATTRIBUTE).- Specified by:
getPathin interfaceHttpCookie- Returns:
- the value of the
Pathattribute - See Also:
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfaceHttpCookie- Returns:
- whether the
Secureattribute is present - See Also:
-
getSameSite
- Specified by:
getSameSitein interfaceHttpCookie- Returns:
- the value of the
SameSiteattribute - See Also:
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnlyin interfaceHttpCookie- Returns:
- whether the
HttpOnlyattribute is present - See Also:
-
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitionedin interfaceHttpCookie- Returns:
- whether the
Partitionedattribute is present - See Also:
-
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
-