public void add ( String name , String value ) { Params . notNullOrEmpty ( name , "Cookie name" ) ; Params . notNull ( value , "Cookie value" ) ; Cookie cookie = new Cookie ( name , value ) ; cookie . setPath ( "/" ) ; httpResponse . addCookie ( cookie ) ; }
Add cookie to HTTP response of the current request context . Override cookie value if already exists .