Class Response.HttpCookieFacade
java.lang.Object
org.eclipse.jetty.ee9.nested.Response.HttpCookieFacade
- All Implemented Interfaces:
HttpCookie
- Enclosing class:
Response
-
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).protected static StringgetCommentWithoutAttributes(String comment) Equivalent togetAttributes().get(DOMAIN_ATTRIBUTE).longgetName()getPath()Equivalent togetAttributes().get(PATH_ATTRIBUTE).protected static HttpCookie.SameSitegetSameSiteFromComment(String comment) getValue()intinthashCode()booleanbooleanprotected static booleanisPartitionedInComment(String comment) booleanisSecure()toString()Methods inherited from interface HttpCookie
getExpires, isExpired
-
Constructor Details
-
HttpCookieFacade
public HttpCookieFacade(jakarta.servlet.http.Cookie cookie)
-
-
Method Details
-
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:
-
getMaxAge
public long getMaxAge()- Specified by:
getMaxAgein interfaceHttpCookie- Returns:
- the value of the
Max-Ageattribute, in seconds, or-1if not present - 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:
-
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
-
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:
-
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
-
isPartitionedInComment
-
getSameSiteFromComment
-
getCommentWithoutAttributes
-