Client.addCookie

Adds a cookie to the response object. This method should be used in conjunction with #createCookie(String, String, int) NB The new cookie's value will not be available to getCookieValue() until the next request.

Parameters

javax.servlet.http.Cookie  cookie,