Package org.eclipse.jetty.ee10.servlet
Class SessionHandler.CookieConfig
java.lang.Object
org.eclipse.jetty.ee10.servlet.SessionHandler.CookieConfig
- All Implemented Interfaces:
jakarta.servlet.SessionCookieConfig
- Enclosing class:
- SessionHandler
public final class SessionHandler.CookieConfig
extends Object
implements jakarta.servlet.SessionCookieConfig
CookieConfig
Implementation of the jakarta.servlet.SessionCookieConfig.
SameSite configuration can be achieved by using setComment
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) According to the SessionCookieConfig javadoc, the attributes must also include all values set by explicit setters.int
getName()
getPath()
boolean
boolean
isSecure()
void
setAttribute
(String name, String value) void
setComment
(String comment) void
void
setHttpOnly
(boolean httpOnly) void
setMaxAge
(int maxAge) void
void
void
setSecure
(boolean secure) toString()
-
Constructor Details
-
CookieConfig
public CookieConfig()
-
-
Method Details
-
getComment
- Specified by:
getComment
in interfacejakarta.servlet.SessionCookieConfig
-
getDomain
- Specified by:
getDomain
in interfacejakarta.servlet.SessionCookieConfig
-
getMaxAge
public int getMaxAge()- Specified by:
getMaxAge
in interfacejakarta.servlet.SessionCookieConfig
-
setAttribute
- Specified by:
setAttribute
in interfacejakarta.servlet.SessionCookieConfig
-
getAttribute
- Specified by:
getAttribute
in interfacejakarta.servlet.SessionCookieConfig
-
getAttributes
According to the SessionCookieConfig javadoc, the attributes must also include all values set by explicit setters.- Specified by:
getAttributes
in interfacejakarta.servlet.SessionCookieConfig
- See Also:
-
SessionCookieConfig
-
getName
- Specified by:
getName
in interfacejakarta.servlet.SessionCookieConfig
-
getPath
- Specified by:
getPath
in interfacejakarta.servlet.SessionCookieConfig
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnly
in interfacejakarta.servlet.SessionCookieConfig
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacejakarta.servlet.SessionCookieConfig
-
setComment
- Specified by:
setComment
in interfacejakarta.servlet.SessionCookieConfig
-
setDomain
- Specified by:
setDomain
in interfacejakarta.servlet.SessionCookieConfig
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) - Specified by:
setHttpOnly
in interfacejakarta.servlet.SessionCookieConfig
-
setMaxAge
public void setMaxAge(int maxAge) - Specified by:
setMaxAge
in interfacejakarta.servlet.SessionCookieConfig
-
setName
- Specified by:
setName
in interfacejakarta.servlet.SessionCookieConfig
-
setPath
- Specified by:
setPath
in interfacejakarta.servlet.SessionCookieConfig
-
setSecure
public void setSecure(boolean secure) - Specified by:
setSecure
in interfacejakarta.servlet.SessionCookieConfig
-
toString
-