Class Cookies


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

      • Cookies

        public Cookies()
    • Method Detail

      • setCookie

        public static javax.servlet.http.Cookie setCookie​(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
      • getCookieValue

        public static String getCookieValue​(javax.servlet.http.HttpServletRequest request,
                                            String key)
      • getCookieValue

        public static String getCookieValue​(String key)