You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/05/10 12:03:28 UTC

svn commit: r405697 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/CookieHandler.java

Author: tellison
Date: Wed May 10 03:03:25 2006
New Revision: 405697

URL: http://svn.apache.org/viewcvs?rev=405697&view=rev
Log:
Generics uplift for CookieHandler

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/CookieHandler.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/CookieHandler.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/CookieHandler.java?rev=405697&r1=405696&r2=405697&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/CookieHandler.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/CookieHandler.java Wed May 10 03:03:25 2006
@@ -16,6 +16,7 @@
 package java.net;
 
 import java.io.IOException;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -60,28 +61,30 @@
 	}
 
 	/**
-	 * searchs and gets all cookies in the cache by the specified uri in the
-	 * request header.
-	 * 
-	 * @param uri
-	 *            the specified uri to search for
-	 * @param requestHeaders
-	 *            a list of request headers
-	 * @return a map that record all such cookies, the map is unchangeable
-	 * @throws IOException
-	 *             if some error of I/O operation occurs
-	 */
-	public abstract Map get(URI uri, Map requestHeaders) throws IOException;
+     * Searchs and gets all cookies in the cache by the specified uri in the
+     * request header.
+     * 
+     * @param uri
+     *            the specified uri to search for
+     * @param requestHeaders
+     *            a list of request headers
+     * @return a map that record all such cookies, the map is unchangeable
+     * @throws IOException
+     *             if some error of I/O operation occurs
+     */
+    public abstract Map<String, List<String>> get(URI uri,
+            Map<String, List<String>> requestHeaders) throws IOException;
 
 	/**
-	 * sets cookies according to uri and responseHeaders
-	 * 
-	 * @param uri
-	 *            the specified uri
-	 * @param responseHeaders
-	 *            a list of request headers
-	 * @throws IOException
-	 *             if some error of I/O operation occurs
-	 */
-	public abstract void put(URI uri, Map responseHeaders) throws IOException;
+     * Sets cookies according to uri and responseHeaders
+     * 
+     * @param uri
+     *            the specified uri
+     * @param responseHeaders
+     *            a list of request headers
+     * @throws IOException
+     *             if some error of I/O operation occurs
+     */
+    public abstract void put(URI uri, Map<String, List<String>> responseHeaders)
+            throws IOException;
 }