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
@Deprecated(since="2021-05-27")
public final class SessionHandler.CookieConfig
extends Object
implements SessionCookieConfig
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
CookieConfig
Implementation of the javax.servlet.SessionCookieConfig.
SameSite configuration can be achieved by using setComment
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.intDeprecated.getName()Deprecated.getPath()Deprecated.booleanDeprecated.booleanisSecure()Deprecated.voidsetComment(String comment) Deprecated.Sets the comment for the session cookievoidDeprecated.Sets the domain for the session cookievoidsetHttpOnly(boolean httpOnly) Deprecated.Sets the httpOnly flag for the session cookie.voidsetMaxAge(int maxAge) Deprecated.Sets the maximum age.voidDeprecated.Sets the session cookie name.voidDeprecated.Sets the path of the session cookie.voidsetSecure(boolean secure) Deprecated.Sets the secure flag for the session cookie.
-
Constructor Details
-
CookieConfig
public CookieConfig()Deprecated.
-
-
Method Details
-
getComment
Deprecated.- Specified by:
getCommentin interfaceSessionCookieConfig
-
getDomain
Deprecated.- Specified by:
getDomainin interfaceSessionCookieConfig
-
getMaxAge
public int getMaxAge()Deprecated.- Specified by:
getMaxAgein interfaceSessionCookieConfig
-
getName
Deprecated.- Specified by:
getNamein interfaceSessionCookieConfig
-
getPath
Deprecated.- Specified by:
getPathin interfaceSessionCookieConfig
-
isHttpOnly
public boolean isHttpOnly()Deprecated.- Specified by:
isHttpOnlyin interfaceSessionCookieConfig
-
isSecure
public boolean isSecure()Deprecated.- Specified by:
isSecurein interfaceSessionCookieConfig
-
setComment
Deprecated.Description copied from interface:SessionCookieConfigSets the comment for the session cookie- Specified by:
setCommentin interfaceSessionCookieConfig- Parameters:
comment- The session cookie comment
-
setDomain
Deprecated.Description copied from interface:SessionCookieConfigSets the domain for the session cookie- Specified by:
setDomainin interfaceSessionCookieConfig- Parameters:
domain- The session cookie domain
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) Deprecated.Description copied from interface:SessionCookieConfigSets the httpOnly flag for the session cookie.- Specified by:
setHttpOnlyin interfaceSessionCookieConfig- Parameters:
httpOnly- The httpOnly setting to use for session cookies
-
setMaxAge
public void setMaxAge(int maxAge) Deprecated.Description copied from interface:SessionCookieConfigSets the maximum age.- Specified by:
setMaxAgein interfaceSessionCookieConfig- Parameters:
maxAge- the maximum age to set
-
setName
Deprecated.Description copied from interface:SessionCookieConfigSets the session cookie name.- Specified by:
setNamein interfaceSessionCookieConfig- Parameters:
name- The name of the session cookie
-
setPath
Deprecated.Description copied from interface:SessionCookieConfigSets the path of the session cookie.- Specified by:
setPathin interfaceSessionCookieConfig- Parameters:
path- The session cookie path
-
setSecure
public void setSecure(boolean secure) Deprecated.Description copied from interface:SessionCookieConfigSets the secure flag for the session cookie.- Specified by:
setSecurein interfaceSessionCookieConfig- Parameters:
secure- The secure setting to use for session cookies
-