Class LinkRewriteConfig

java.lang.Object
com.day.cq.rewriter.linkchecker.LinkRewriteConfig

public class LinkRewriteConfig extends Object
LinkRewriteConfig holds the prefix and suffix strings for links that are invalid, expired or predated.
  • Constructor Details

    • LinkRewriteConfig

      public LinkRewriteConfig(boolean remove, String prefix, String suffix)
      Creates a new config.
      Parameters:
      remove - indicates if the link should be removed
      prefix - prefix string
      suffix - suffix string
  • Method Details

    • remove

      public boolean remove()
      Controls if the link should be removed
      Returns:
      true if the link should be removed
    • getPrefix

      public String getPrefix()
      Returns the prefix string
      Returns:
      prefix string
    • getSuffix

      public String getSuffix()
      Returns the suffix string
      Returns:
      suffix string