common/src/main/java/HTTPClient/CookieModule.java
/**
     * Add the specified cookie to the list of cookies in the default context.
     * If a compatible cookie (as defined by <var>Cookie.equals()</var>)
     * already exists in the list then it is replaced with the new cookie.
     *
     * @param cookie the Cookie to add
     * @since V0.3-1
     */
Add the specified cookie to the list of cookies in the default context.
If a compatible cookie (as defined by Cookie.equals())
already exists in the list then it is replaced with the new cookie.

@param cookie the Cookie to add
@since V0.3-1
Add the specified cookie to the list of cookies in the default context . If a compatible cookie ( as defined by Cookie . equals () ) already exists in the list then it is replaced with the new cookie . @param cookie the Cookie to add @since V0 . 3 - 1
@SuppressWarnings("unchecked")
    public static void addCookie(Cookie cookie)
    {
	Hashtable cookie_list =
	    Util.getList(cookie_cntxt_list, HTTPConnection.getDefaultContext());
	cookie_list.put(cookie, cookie);
    }
@ SuppressWarnings ( "unchecked" ) public static void addCookie ( Cookie cookie ) { Hashtable cookie_list = Util . getList ( cookie_cntxt_list , HTTPConnection . getDefaultContext ( ) ) ; cookie_list . put ( cookie , cookie ) ; }
Add the specified cookie to the list of cookies in the default context.
Add the specified cookie to the list of cookies in the default context .