Class CookieHelper


  • public class CookieHelper
    extends Object
    Cookie finder
    Author:
    K. Benedyczak
    • Constructor Detail

      • CookieHelper

        public CookieHelper()
    • Method Detail

      • getCookie

        public static String getCookie​(javax.servlet.http.HttpServletRequest request,
                                       String name)
        Parameters:
        request -
        name -
        Returns:
        cookie name by value
      • getCookie

        public static String getCookie​(javax.servlet.http.Cookie[] cookies,
                                       String name)
        Parameters:
        request -
        name -
        Returns:
        cookie name by value
      • setupHttpCookie

        public static javax.servlet.http.Cookie setupHttpCookie​(String cookieName,
                                                                String cookieValue,
                                                                int maxAge)