6882609: Move default InMemoryCookieStore to java.net

Remove static dependency on sun.net.www.protocol.http

Reviewed-by: alanb, jccollet
This commit is contained in:
Chris Hegarty 2009-09-18 16:24:26 +01:00
parent 923f665126
commit be7dddc8a3
3 changed files with 4 additions and 5 deletions

View File

@ -123,8 +123,7 @@ FILES_java = \
sun/net/idn/UCharacterEnums.java \
sun/net/idn/UCharacterDirection.java \
sun/net/idn/StringPrepDataReader.java \
sun/net/idn/StringPrep.java \
sun/net/www/protocol/http/InMemoryCookieStore.java
sun/net/idn/StringPrep.java
ifeq ($(PLATFORM), windows)
FILES_java += sun/net/www/protocol/http/NTLMAuthSequence.java

View File

@ -157,7 +157,7 @@ public class CookieManager extends CookieHandler
// if not specify CookieStore to use, use default one
if (store == null) {
cookieJar = new sun.net.www.protocol.http.InMemoryCookieStore();
cookieJar = new InMemoryCookieStore();
} else {
cookieJar = store;
}

View File

@ -23,7 +23,7 @@
* have any questions.
*/
package sun.net.www.protocol.http;
package java.net;
import java.net.URI;
import java.net.CookieStore;
@ -43,7 +43,7 @@ import java.util.concurrent.locks.ReentrantLock;
* @author Edward Wang
* @since 1.6
*/
public class InMemoryCookieStore implements CookieStore {
class InMemoryCookieStore implements CookieStore {
// the in-memory representation of cookies
private List<HttpCookie> cookieJar = null;