Made CookieSpecRegistry implement Lookup interface for compatibility with the new config API

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2012-12-04 09:52:00 +00:00
parent a901dbf14f
commit c222ad9247
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ import java.util.concurrent.ConcurrentHashMap;
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.HttpContext;
*/
@ThreadSafe
@Deprecated
public final class CookieSpecRegistry {
public final class CookieSpecRegistry implements Lookup<CookieSpecProvider> {
private final ConcurrentHashMap<String,CookieSpecFactory> registeredSpecs;