Class Cookie

java.lang.Object
org.springframework.boot.web.server.Cookie
Direct Known Subclasses:
Session.Cookie

public class Cookie extends Object
Cookie properties.
Since:
2.6.0
Author:
Phillip Webb, Andy Wilkinson, Brian Clozel, Weix Sun
  • Constructor Details

    • Cookie

      public Cookie()
  • Method Details

    • 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

      public Boolean getHttpOnly()
    • setHttpOnly

      public void setHttpOnly(Boolean httpOnly)
    • getSecure

      public Boolean getSecure()
    • setSecure

      public void setSecure(Boolean secure)
    • getMaxAge

      public Duration getMaxAge()
    • setMaxAge

      public void setMaxAge(Duration maxAge)
    • getSameSite

      public Cookie.SameSite getSameSite()
    • setSameSite

      public void setSameSite(Cookie.SameSite sameSite)
    • getPartitioned

      public Boolean getPartitioned()
    • setPartitioned

      public void setPartitioned(Boolean partitioned)