find cookie value
@param request current request
@param name cookie name
@return cookie value
421410
public static String findCookieValue(HttpServletRequest request, String name) {
        Cookie cookie = findCookie(request, name);
        return cookie != null ? cookie.getValue() : null;
    }
715009
function (name) {
    if ($.cookie(this.cookieName)) {
      var cookieVals = $.cookie(this.cookieName).split("|");
      for (var i = 0; i < cookieVals.length; i++) {
        var fieldVals = cookieVals[i].split("~");
        if (fieldVals[0] == name) {
          return fieldVals[1];
        }
      }
    }
    return false;
  }
41104
public String getHtmlCookieString(String name, String value, Map<String, String> cookieProperties) {
        return createHtmlCookieString(name, value, cookieProperties, true);
    }
1236779
public Cookie get(String name, String domain) {
		for(Cookie cookie : this) {
			if(cookie.getName().equals(name) && cookie.getDomain().equals(domain))
				return cookie; 
		}
		return null;
	}
1193747
public static String getCookieValue(ServletRequest request, String key)
	{
		Cookie[] cookies = ((HttpServletRequest) request).getCookies();
		if (cookies != null)
		{
			for (int i = 0; i < cookies.length; i++)
			{
				if (cookies[i].getName().equals(key))
				{
					return cookies[i].getValue();
				}
			}
		}
		return null;
	}
1039922
public static void setCookie(String name, String value, int maxAge, boolean httpOnly, HttpServletRequest request, HttpServletResponse response) {
		String domain = request.getServerName();
		// String domain = serverName;
		setCookie(name, value, maxAge, httpOnly, domain, response);
	}
704579
public String getCookie(String name, String defaultValue) {
		Cookie cookie = getCookieObject(name);
		return cookie != null ? cookie.getValue() : defaultValue;
	}
337830
def cookie_get(self, name):
		
		if not hasattr(self, 'cookies'):
			return None
		if self.cookies.get(name):
			return self.cookies.get(name).value
		return None
356152
public static String extractCookie(final HttpServletRequest request, final String name) {
		for (Cookie cookie : request.getCookies()) {
			if (cookie.getName().equals(name)) {
				return cookie.getValue();
			}
		}
		return null;
	}
734786
protected IPortalCookie getPortalCookie(HttpServletRequest request) {
        final Cookie cookie = this.getCookieFromRequest(this.cookieName, request);
        if (cookie == null) {
            // check the session
            IPortalCookie portalCookieInSession = locatePortalCookieInSession(request.getSession());
            if (null != portalCookieInSession) {
                return portalCookieInSession;
            }

            return null;
        }

        final String value = cookie.getValue();
        return this.portletCookieDao.getPortalCookie(value);
    }
28512
public function getCookie(ServerRequestInterface $request, $name)
    {
        $reqCookies = $request->getAttribute('request_cookies');
        if (!$reqCookies instanceof Cookies) {
            return null;
        }

        if (!$cookie = $reqCookies->get($name)) {
            return null;
        }

        $val = $cookie->getValue();

        return ($val instanceof OpaqueProperty) ? $val->getValue() : $val;
    }
516566
public static function getCookie(ServerRequestInterface $request, string $name): string
    {
        $cookies = $request->getCookieParams();

        return isset($cookies[$name]) ? $cookies[$name] : '-';
    }
176023
public String getParam(final HttpServletRequest request, final String name,
      final String defaultVal) {
    return HttpRequestUtils.getParam(request, name, defaultVal);
  }
337004
@Override
    public String cookieValue(String name) {
        return CookieHelper.getCookieValue(name, request().cookies());
    }
1097554
public static boolean removeCookie(String name, HttpServletRequest request, HttpServletResponse response) {
        return removeCookie(name, request.getCookies(), response);
    }
160874
public static String getParameter(ServletRequest request, String name) {
    String s = request.getParameter(name);
    if (s == null) {
      return null;
    }
    s = s.trim();
    return s.length() == 0? null: s;
  }
338860
public int getAllCookies(String name, List<HttpCookie> list) {
        int added = 0;
        if (0 < this.parsedList.size() && null != name) {
            for (HttpCookie cookie : this.parsedList) {
                if (cookie.getName().equals(name)) {
                    list.add(cookie.clone());
                    added++;
                }
            }
        }
        return added;
    }