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 java.lang.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:
HttpCookie
-
-
Constructor Summary
Constructors Constructor Description CookieConfig()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetComment()Deprecated.java.lang.StringgetDomain()Deprecated.intgetMaxAge()Deprecated.java.lang.StringgetName()Deprecated.java.lang.StringgetPath()Deprecated.booleanisHttpOnly()Deprecated.booleanisSecure()Deprecated.voidsetComment(java.lang.String comment)Deprecated.Sets the comment for the session cookievoidsetDomain(java.lang.String domain)Deprecated.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.voidsetName(java.lang.String name)Deprecated.Sets the session cookie name.voidsetPath(java.lang.String path)Deprecated.Sets the path of the session cookie.voidsetSecure(boolean secure)Deprecated.Sets the secure flag for the session cookie.
-
-
-
Method Detail
-
getComment
public java.lang.String getComment()
Deprecated.- Specified by:
getCommentin interfaceSessionCookieConfig
-
getDomain
public java.lang.String getDomain()
Deprecated.- Specified by:
getDomainin interfaceSessionCookieConfig
-
getMaxAge
public int getMaxAge()
Deprecated.- Specified by:
getMaxAgein interfaceSessionCookieConfig
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getNamein interfaceSessionCookieConfig
-
getPath
public java.lang.String 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
public void setComment(java.lang.String comment)
Deprecated.Description copied from interface:SessionCookieConfigSets the comment for the session cookie- Specified by:
setCommentin interfaceSessionCookieConfig- Parameters:
comment- The session cookie comment
-
setDomain
public void setDomain(java.lang.String domain)
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
public void setName(java.lang.String name)
Deprecated.Description copied from interface:SessionCookieConfigSets the session cookie name.- Specified by:
setNamein interfaceSessionCookieConfig- Parameters:
name- The name of the session cookie
-
setPath
public void setPath(java.lang.String path)
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
-
-