Package org.eclipse.jetty.server.session
Class SessionHandler.CookieConfig
- java.lang.Object
-
- org.eclipse.jetty.server.session.SessionHandler.CookieConfig
-
- All Implemented Interfaces:
SessionCookieConfig
- Enclosing class:
- SessionHandler
public final class SessionHandler.CookieConfig extends java.lang.Object implements SessionCookieConfig
CookieConfig Implementation of the javax.servlet.SessionCookieConfig. SameSite configuration can be achieved by using setComment- See Also:
HttpCookie
-
-
Constructor Summary
Constructors Constructor Description CookieConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getComment()
java.lang.String
getDomain()
int
getMaxAge()
java.lang.String
getName()
java.lang.String
getPath()
boolean
isHttpOnly()
boolean
isSecure()
void
setComment(java.lang.String comment)
void
setDomain(java.lang.String domain)
void
setHttpOnly(boolean httpOnly)
void
setMaxAge(int maxAge)
Sets the maximum age.void
setName(java.lang.String name)
void
setPath(java.lang.String path)
void
setSecure(boolean secure)
-
-
-
Method Detail
-
getComment
public java.lang.String getComment()
- Specified by:
getComment
in interfaceSessionCookieConfig
-
getDomain
public java.lang.String getDomain()
- Specified by:
getDomain
in interfaceSessionCookieConfig
-
getMaxAge
public int getMaxAge()
- Specified by:
getMaxAge
in interfaceSessionCookieConfig
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceSessionCookieConfig
-
getPath
public java.lang.String getPath()
- Specified by:
getPath
in interfaceSessionCookieConfig
-
isHttpOnly
public boolean isHttpOnly()
- Specified by:
isHttpOnly
in interfaceSessionCookieConfig
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfaceSessionCookieConfig
-
setComment
public void setComment(java.lang.String comment)
- Specified by:
setComment
in interfaceSessionCookieConfig
-
setDomain
public void setDomain(java.lang.String domain)
- Specified by:
setDomain
in interfaceSessionCookieConfig
-
setHttpOnly
public void setHttpOnly(boolean httpOnly)
- Specified by:
setHttpOnly
in interfaceSessionCookieConfig
-
setMaxAge
public void setMaxAge(int maxAge)
Description copied from interface:SessionCookieConfig
Sets the maximum age.- Specified by:
setMaxAge
in interfaceSessionCookieConfig
- Parameters:
maxAge
- the maximum age to set
-
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interfaceSessionCookieConfig
-
setPath
public void setPath(java.lang.String path)
- Specified by:
setPath
in interfaceSessionCookieConfig
-
setSecure
public void setSecure(boolean secure)
- Specified by:
setSecure
in interfaceSessionCookieConfig
-
-