Modifier and Type | Method and Description |
---|---|
static Path |
create(SitemapParameters parameters)
Based on the parameters, generates an arbitrary number of sitemap.xml files
|
static Path |
index(Path targetDir,
Stream<Path> targetDirs)
Creates sitemap-index.xml file(s) for all sitemap.xml files listed in any cache
file ( ) in the
targetDirs |
static Path |
index(SitemapParameters parameters,
Stream<Path> targetDirs) |
static void |
robotsTxt(Path targetDir)
Generates a
robots.txt file in the targetDir , based on
the sitemap indices cache list there. |
static String |
submit(Path targetDir,
URI baseUrl,
List<String> hosts)
Submits sitemap indices to a given list of search engines
|
public static Path create(SitemapParameters parameters)
parameters
- IOException
- if unable to write the files or cachepublic static Path index(Path targetDir, Stream<Path> targetDirs)
targetDirs
targetDir
- where to write the index/indicestargetDirs
- where to look for sitemap listing cache filesIOException
- if unable to write the files or read the cachespublic static Path index(SitemapParameters parameters, Stream<Path> targetDirs)
public static String submit(Path targetDir, URI baseUrl, List<String> hosts)
targetDir
- baseUrl
- hosts
- public static void robotsTxt(Path targetDir)
Generates a robots.txt
file in the targetDir
, based on
the sitemap indices cache list there.
If no sitemap indices exist then a permissive robots.txt will still be generated.
targetDir
- the directory to read the cache list from, and write the robots.txt file toUncheckedIOException
- if unable to write the file or read the cacheCopyright © 2017–2018 earcam. All rights reserved.