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

commit 1b27ab8264b91a7116931908f3074022c68c826b
Author: Sebastian Nagel <sna...@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) {

Reply via email to