Package io.undertow.servlet.spec
Class ServletCookieAdaptor
java.lang.Object
io.undertow.servlet.spec.ServletCookieAdaptor
- All Implemented Interfaces:
Cookie
Adaptor between and undertow and a servlet cookie
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getPath()getValue()intbooleanbooleanbooleanbooleanisSecure()setComment(String comment) setDiscard(boolean discard) setExpires(Date expires) setHttpOnly(boolean httpOnly) setSameSite(boolean sameSite) setSameSiteMode(String mode) setSecure(boolean secure) setVersion(int version)
-
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
-