You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by le...@apache.org on 2016/07/06 19:33:37 UTC

[2/6] nutch git commit: NUTCH-2284 Javadoc is updated to explain how to use Basic Authentication.

NUTCH-2284 Javadoc is updated to explain how to use Basic Authentication.


Project: http://git-wip-us.apache.org/repos/asf/nutch/repo
Commit: http://git-wip-us.apache.org/repos/asf/nutch/commit/fc2b80f5
Tree: http://git-wip-us.apache.org/repos/asf/nutch/tree/fc2b80f5
Diff: http://git-wip-us.apache.org/repos/asf/nutch/diff/fc2b80f5

Branch: refs/heads/2.x
Commit: fc2b80f595c684cdabe07e115001ebd24c185981
Parents: 52ffc5a
Author: Furkan KAMACI <fu...@gmail.com>
Authored: Sat Jun 25 14:24:10 2016 +0300
Committer: Furkan KAMACI <fu...@gmail.com>
Committed: Sat Jun 25 14:24:10 2016 +0300

----------------------------------------------------------------------
 src/java/org/apache/nutch/api/NutchServer.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nutch/blob/fc2b80f5/src/java/org/apache/nutch/api/NutchServer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/nutch/api/NutchServer.java b/src/java/org/apache/nutch/api/NutchServer.java
index 3429beb..969ec16 100644
--- a/src/java/org/apache/nutch/api/NutchServer.java
+++ b/src/java/org/apache/nutch/api/NutchServer.java
@@ -88,7 +88,12 @@ public class NutchServer extends Application {
    * well as the logging granularity. If the latter option is not provided via
    * {@link org.apache.nutch.api.NutchServer#main(String[])} then it defaults to
    * 'INFO' however best attempts should always be made to specify a logging
-   * level.
+   * level.<br>
+   * {@link org.apache.nutch.api.NutchServer} can be run as secure. restapi.auth property
+   * should be set to true at <code>nutch-site.xml</code> to enable HTTP basic authentication
+   * for communicating with RESTAPI.
+   * Use the restapi.auth.username and restapi.auth.auth.password properties to configure
+   * your credentials.
    */
   public NutchServer() {
     configManager = new RAMConfManager();