Class LinkRewriteConfig


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

      Constructors 
      Constructor Description
      LinkRewriteConfig​(boolean remove, java.lang.String prefix, java.lang.String suffix)
      Creates a new config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPrefix()
      Returns the prefix string
      java.lang.String getSuffix()
      Returns the suffix string
      boolean remove()
      Controls if the link should be removed
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkRewriteConfig

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

      • remove

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

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

        public java.lang.String getSuffix()
        Returns the suffix string
        Returns:
        suffix string