common/src/main/java/HTTPClient/CookieModule.java
/**
     * List all stored cookies for a given context.
     *
     * @param  context the context Object.
     * @return an array of Cookies
     * @since V0.3-1
     */
List all stored cookies for a given context.
@param  context the context Object.
@return an array of Cookies
@since V0.3-1
List all stored cookies for a given context . @param context the context Object . @return an array of Cookies @since V0 . 3 - 1
public static Cookie[] listAllCookies(Object context)
    {
	Hashtable cookie_list = Util.getList(cookie_cntxt_list, context);
	synchronized (cookie_list)
	{
	    Cookie[] cookies = new Cookie[cookie_list.size()];
	    int idx = 0;
	    Enumeration enumera = cookie_list.elements();
	    while (enumera.hasMoreElements())
		cookies[idx++] = (Cookie) enumera.nextElement();
	    return cookies;
	}
    }
public static Cookie [ ] listAllCookies ( Object context ) { Hashtable cookie_list = Util . getList ( cookie_cntxt_list , context ) ; synchronized ( cookie_list ) { Cookie [ ] cookies = new Cookie [ cookie_list . size ( ) ] ; int idx = 0 ; Enumeration enumera = cookie_list . elements ( ) ; while ( enumera . hasMoreElements ( ) ) cookies [ idx ++ ] = ( Cookie ) enumera . nextElement ( ) ; return cookies ; } }
List all stored cookies for a given context.
List all stored cookies for a given context .