Class RobotsTxt


  • public class RobotsTxt
    extends Object
    • Field Detail

      • UNSPECIFIED_CRAWL_DELAY

        public static final float UNSPECIFIED_CRAWL_DELAY
        See Also:
        Constant Field Values
    • Constructor Detail

      • RobotsTxt

        public RobotsTxt​(IRobotsTxtFilter... filters)
        Creates a new robot txt object with the supplied filters.
        Parameters:
        filters - filters
      • RobotsTxt

        public RobotsTxt​(List<IRobotsTxtFilter> filters)
        Creates a new robot txt object with the supplied filters.
        Parameters:
        filters - filters
        Since:
        3.0.0
    • Method Detail

      • getFilters

        public List<IRobotsTxtFilter> getFilters()
        Gets all filters.
        Returns:
        filters (never null)
      • getDisallowFilters

        public List<IRobotsTxtFilter> getDisallowFilters()
        Gets "Disallow" filters.
        Returns:
        disallow filters (never null)
        Since:
        2.4.0
      • getAllowFilters

        public List<IRobotsTxtFilter> getAllowFilters()
        Gets "Allow" filters.
        Returns:
        allow filters (never null)
        Since:
        2.4.0
      • getSitemapLocations

        public List<String> getSitemapLocations()
      • getCrawlDelay

        public float getCrawlDelay()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object