类 CookieProperties
java.lang.Object
cn.taketoday.session.config.CookieProperties
Cookie properties.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Andy Wilkinson, Brian Clozel, Weix Sun, Harry Yang
-
字段概要
字段修饰符和类型字段说明static final Stringprivate StringDomain for the cookie.private BooleanWhether to use "HttpOnly" cookies for the cookie.private DurationMaximum age of the cookie.private StringName for the cookie.private StringPath of the cookie.private SameSiteSameSite setting for the cookie.private BooleanWhether to always mark the cookie as secure. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createCookie(String value) getName()getPath()voidvoidsetHttpOnly(Boolean httpOnly) voidvoidvoidvoidsetSameSite(SameSite sameSite) void
-
字段详细资料
-
DEFAULT_COOKIE_NAME
- 另请参阅:
-
name
Name for the cookie. -
domain
Domain for the cookie. -
path
Path of the cookie. -
httpOnly
Whether to use "HttpOnly" cookies for the cookie. -
secure
Whether to always mark the cookie as secure. -
maxAge
Maximum age of the cookie. If a duration suffix is not specified, seconds will be used. A positive value indicates when the cookie expires relative to the current time. A value of 0 means the cookie should expire immediately. A negative value means no "Max-Age". -
sameSite
SameSite setting for the cookie.
-
-
构造器详细资料
-
CookieProperties
public CookieProperties()
-
-
方法详细资料
-
getName
-
setName
-
getDomain
-
setDomain
-
getPath
-
setPath
-
getHttpOnly
-
setHttpOnly
-
getSecure
-
setSecure
-
getMaxAge
-
setMaxAge
-
getSameSite
-
setSameSite
-
createCookie
-