Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2896 Protocol-okhttp: make connection pool configurable - fix javadoc error

Sebastian Nagel467e59105152
diff --git a/src/plugin/protocol-okhttp/src/java/org/apache/nutch/protocol/okhttp/OkHttp.java b/src/plugin/protocol-okhttp/src/java/org/apache/nutch/protocol/okhttp/OkHttp.java
index 09eb1a5ef..9fbcda745 100644
--- a/src/plugin/protocol-okhttp/src/java/org/apache/nutch/protocol/okhttp/OkHttp.java
+++ b/src/plugin/protocol-okhttp/src/java/org/apache/nutch/protocol/okhttp/OkHttp.java
@@ -365,7 +365,13 @@ public class OkHttp extends HttpBase {
return this.customRequestHeaders;
}
- /** Distribute hosts over clients by host name */
+ /**
+ * Distribute hosts over clients by host name
+ *
+ * @param url
+ * URL to fetch
+ * @return client responsible to fetch the given URL
+ */
protected OkHttpClient getClient(URL url) {
if (this.clients.length == 1) {
return this.clients[0];