Class SitemapGeneratorServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generateSiteMap​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> siteMapRequest)
      This method generate a site map entity.
      java.util.HashSet<java.lang.String> getPageLinks​(java.lang.String URL, java.util.HashSet<java.lang.String> links, java.util.List<java.lang.String> urlsToIgnore)
      This method returns a page links set.
      • Methods inherited from class java.lang.Object

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

      • SitemapGeneratorServiceImpl

        public SitemapGeneratorServiceImpl()
    • Method Detail

      • generateSiteMap

        @Async("asyncTaskExecutor")
        public void generateSiteMap​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> siteMapRequest)
                             throws java.net.MalformedURLException
        Description copied from interface: SitemapGeneratorService
        This method generate a site map entity.
        Specified by:
        generateSiteMap in interface SitemapGeneratorService
        Parameters:
        siteMapRequest - map-representation of request contains an instructions for create site map
        Throws:
        java.net.MalformedURLException - in build and generate site map
      • getPageLinks

        public java.util.HashSet<java.lang.String> getPageLinks​(java.lang.String URL,
                                                                java.util.HashSet<java.lang.String> links,
                                                                java.util.List<java.lang.String> urlsToIgnore)
        Description copied from interface: SitemapGeneratorService
        This method returns a page links set.
        Specified by:
        getPageLinks in interface SitemapGeneratorService
        Parameters:
        URL - url link for add set links
        links - set-representation of links, which will be updated
        urlsToIgnore - list of urls for filter and ignored
        Returns:
        set of links from parsed page