You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2014/04/06 21:53:28 UTC
svn commit: r1585334 -
/manifoldcf/branches/CONNECTORS-911/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
Author: kwright
Date: Sun Apr 6 19:53:27 2014
New Revision: 1585334
URL: http://svn.apache.org/r1585334
Log:
Fix last deprecation warning
Modified:
manifoldcf/branches/CONNECTORS-911/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
Modified: manifoldcf/branches/CONNECTORS-911/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-911/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java?rev=1585334&r1=1585333&r2=1585334&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-911/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java (original)
+++ manifoldcf/branches/CONNECTORS-911/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java Sun Apr 6 19:53:27 2014
@@ -74,7 +74,7 @@ import org.apache.http.cookie.CookieSpec
import org.apache.http.client.CookieStore;
import org.apache.http.protocol.HttpContext;
import org.apache.http.protocol.BasicHttpContext;
-import org.apache.http.client.protocol.ClientContext;
+import org.apache.http.client.protocol.HttpClientContext;
import org.apache.http.cookie.CookieIdentityComparator;
import org.apache.http.client.HttpRequestRetryHandler;
import org.apache.http.cookie.CookieSpecProvider;
@@ -1402,9 +1402,7 @@ public class ThrottledFetcher
try
{
HttpContext context = new BasicHttpContext();
- // ???
- context.setAttribute(ClientContext.COOKIE_STORE,cookieStore);
- // ??? check to be sure virtual host usage is correct below
+ context.setAttribute(HttpClientContext.COOKIE_STORE,cookieStore);
response = httpClient.execute(target,executeMethod,context);
}
catch (java.net.SocketTimeoutException e)