类 CookieProperties

java.lang.Object
cn.taketoday.session.config.CookieProperties

public class CookieProperties extends Object
Cookie properties.
从以下版本开始:
4.0
作者:
Phillip Webb, Andy Wilkinson, Brian Clozel, Weix Sun, Harry Yang
  • 字段详细资料

    • name

      private String name
      Name for the cookie.
    • domain

      private String domain
      Domain for the cookie.
    • path

      private String path
      Path of the cookie.
    • httpOnly

      @Nullable private Boolean httpOnly
      Whether to use "HttpOnly" cookies for the cookie.
    • secure

      @Nullable private Boolean secure
      Whether to always mark the cookie as secure.
    • maxAge

      @DurationUnit(SECONDS) private Duration 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

      private SameSite sameSite
      SameSite setting for the cookie.
  • 构造器详细资料

    • CookieProperties

      public CookieProperties()
  • 方法详细资料

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDomain

      public String getDomain()
    • setDomain

      public void setDomain(String domain)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getHttpOnly

      @Nullable public Boolean getHttpOnly()
    • setHttpOnly

      public void setHttpOnly(@Nullable Boolean httpOnly)
    • getSecure

      @Nullable public Boolean getSecure()
    • setSecure

      public void setSecure(@Nullable Boolean secure)
    • getMaxAge

      public Duration getMaxAge()
    • setMaxAge

      public void setMaxAge(Duration maxAge)
    • getSameSite

      public SameSite getSameSite()
    • setSameSite

      public void setSameSite(SameSite sameSite)
    • createCookie

      public ResponseCookie createCookie(String value)