You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by sn...@apache.org on 2020/05/05 09:29:19 UTC

[nutch] branch master updated: NUTCH-2434 Add methods to reset parameters HTMLMetaTags (apply patch contributed by Markus)

This is an automated email from the ASF dual-hosted git repository.

snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git


The following commit(s) were added to refs/heads/master by this push:
     new a0ed0b4  NUTCH-2434 Add methods to reset parameters HTMLMetaTags (apply patch contributed by Markus)
a0ed0b4 is described below

commit a0ed0b42c2a42be2963a43d99ebc849b71d95fa8
Author: Sebastian Nagel <sn...@apache.org>
AuthorDate: Tue May 5 11:27:35 2020 +0200

    NUTCH-2434 Add methods to reset parameters HTMLMetaTags
    (apply patch contributed by Markus)
---
 src/java/org/apache/nutch/parse/HTMLMetaTags.java | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/src/java/org/apache/nutch/parse/HTMLMetaTags.java b/src/java/org/apache/nutch/parse/HTMLMetaTags.java
index 7c301e1..23a9339 100644
--- a/src/java/org/apache/nutch/parse/HTMLMetaTags.java
+++ b/src/java/org/apache/nutch/parse/HTMLMetaTags.java
@@ -68,6 +68,13 @@ public class HTMLMetaTags {
   }
 
   /**
+   * Sets <code>noFollow</code> to <code>false</code>.
+   */
+  public void setFollow() {
+    noFollow = false;
+  }
+
+  /**
    * Sets <code>noIndex</code> to <code>true</code>.
    */
   public void setNoIndex() {
@@ -75,6 +82,13 @@ public class HTMLMetaTags {
   }
 
   /**
+   * Sets <code>noIndex</code> to <code>false</code>.
+   */
+  public void setIndex() {
+    noIndex = false;
+  }
+
+  /**
    * Sets <code>noCache</code> to <code>true</code>.
    */
   public void setNoCache() {
@@ -82,6 +96,13 @@ public class HTMLMetaTags {
   }
 
   /**
+   * Sets <code>noCache</code> to <code>false</code>.
+   */
+  public void setCache() {
+    noCache = false;
+  }
+
+  /**
    * Sets <code>refresh</code> to the supplied value.
    */
   public void setRefresh(boolean refresh) {