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:
parent
923f665126
commit
be7dddc8a3
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user