You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2012/12/04 10:52:00 UTC

svn commit: r1416857 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java

Author: olegk
Date: Tue Dec  4 09:52:00 2012
New Revision: 1416857

URL: http://svn.apache.org/viewvc?rev=1416857&view=rev
Log:
Made CookieSpecRegistry implement Lookup interface for compatibility with the new config API

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java?rev=1416857&r1=1416856&r2=1416857&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java (original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/cookie/CookieSpecRegistry.java Tue Dec  4 09:52:00 2012
@@ -35,6 +35,7 @@ import java.util.concurrent.ConcurrentHa
 
 import org.apache.http.HttpRequest;
 import org.apache.http.annotation.ThreadSafe;
+import org.apache.http.config.Lookup;
 import org.apache.http.config.Registry;
 import org.apache.http.params.HttpParams;
 import org.apache.http.protocol.ExecutionContext;
@@ -51,7 +52,7 @@ import org.apache.http.protocol.HttpCont
  */
 @ThreadSafe
 @Deprecated
-public final class CookieSpecRegistry {
+public final class CookieSpecRegistry implements Lookup<CookieSpecProvider> {
 
     private final ConcurrentHashMap<String,CookieSpecFactory> registeredSpecs;