Class Cookies

java.lang.Object
com.atlassian.confluence.web.Cookies

public final class Cookies extends Object
Since:
8.8
  • Constructor Details

    • Cookies

      public Cookies()
  • Method Details

    • setResponseCookie

      public static jakarta.servlet.http.Cookie setResponseCookie(String key, String value)
      Sets a cookie. set to use a default cookie age of one year and the context path as the default path
      Parameters:
      key - the key of the cookie
      value - the value of the cookie
      Returns:
      the new Cookie object
      Since:
      10.0
    • getCookieValue

      public static String getCookieValue(jakarta.servlet.http.HttpServletRequest request, String key)
      Since:
      10.0
    • getCookieValue

      public static String getCookieValue(String key)