goja-web/src/main/java/goja/mvc/kits/Requests.java
public static Cookie getCookie(HttpServletRequest request, String name) {
        Cookie[] cookies = request.getCookies();
        if (cookies == null) return null;
        for (Cookie ck : cookies) {
            if (StringUtils.equalsIgnoreCase(name, ck.getName())) {
                return ck;
            }
        }
        return null;
    }
public static Cookie getCookie(HttpServletRequest request, String name) {
        Cookie[] cookies = request.getCookies();
        if (cookies == null) return null;
        for (Cookie ck : cookies) {
            if (StringUtils.equalsIgnoreCase(name, ck.getName())) {
                return ck;
            }
        }
        return null;
    }
public static Cookie getCookie ( HttpServletRequest request , String name ) { Cookie [ ] cookies = request . getCookies ( ) ; if ( cookies == null ) return null ; for ( Cookie ck : cookies ) { if ( StringUtils . equalsIgnoreCase ( name , ck . getName ( ) ) ) { return ck ; } } return null ; }
获取COOKIE

@param name    cookie 名称
@param request 当前请求
@return cookie 信息
获取COOKIE