Package io.undertow.servlet.spec
Class ServletCookieAdaptor
java.lang.Object
io.undertow.servlet.spec.ServletCookieAdaptor
- All Implemented Interfaces:
Cookie,Comparable
Adaptor between and undertow and a servlet cookie
- Author:
- Stuart Douglas, Richard Opalka
-
Field Summary
Fields inherited from interface io.undertow.server.handlers.Cookie
COOKIE_COMMENT_ATTR, COOKIE_DISCARD_ATTR, COOKIE_DOMAIN_ATTR, COOKIE_EXPIRES_ATTR, COOKIE_HTTP_ONLY_ATTR, COOKIE_MAX_AGE_ATTR, COOKIE_PATH_ATTR, COOKIE_SAME_SITE_ATTR, COOKIE_SECURE_ATTR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal booleangetAttribute(String name) getName()getPath()getValue()intfinal inthashCode()booleanbooleanbooleanbooleanisSecure()setAttribute(String name, String value) setComment(String comment) setDiscard(boolean discard) setExpires(Date expires) setHttpOnly(boolean httpOnly) setSameSite(boolean sameSite) setSameSiteMode(String mode) setSecure(boolean secure) setVersion(int version) final StringtoString()
-
Constructor Details
-
ServletCookieAdaptor
public ServletCookieAdaptor(jakarta.servlet.http.Cookie cookie)
-
-
Method Details
-
getName
-
getValue
-
setValue
-
getPath
-
setPath
-
getDomain
-
setDomain
-
getMaxAge
-
setMaxAge
-
isDiscard
public boolean isDiscard() -
setDiscard
- Specified by:
setDiscardin interfaceCookie
-
isSecure
public boolean isSecure() -
setSecure
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceCookie
-
setVersion
- Specified by:
setVersionin interfaceCookie
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnlyin interfaceCookie
-
setHttpOnly
- Specified by:
setHttpOnlyin interfaceCookie
-
getExpires
- Specified by:
getExpiresin interfaceCookie
-
setExpires
- Specified by:
setExpiresin interfaceCookie
-
getComment
- Specified by:
getCommentin interfaceCookie
-
setComment
- Specified by:
setCommentin interfaceCookie
-
isSameSite
public boolean isSameSite()- Specified by:
isSameSitein interfaceCookie
-
setSameSite
- Specified by:
setSameSitein interfaceCookie
-
getSameSiteMode
- Specified by:
getSameSiteModein interfaceCookie
-
setSameSiteMode
- Specified by:
setSameSiteModein interfaceCookie
-
getAttribute
- Specified by:
getAttributein interfaceCookie
-
setAttribute
- Specified by:
setAttributein interfaceCookie
-
getAttributes
- Specified by:
getAttributesin interfaceCookie
-
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable- Specified by:
compareToin interfaceCookie
-
toString
-