public class LinkExplorer extends AbstractUriExplorer
A Capability List may be made discoverable by means of links provided either in an HTML document [HTML Links, XHTML Links] or in an HTTP Link header [RFC 5988].
A Resource List is a Sitemap and hence may be made discoverable via the established approach of adding a Sitemap directive to a Source's robots.txt file that has the URI of the Resource List as its value. If a Source supports multiple sets of resources, multiple directives may be added, one for each Resource List associated with a specific set of resources.
In case a Source supports both regular Sitemaps and ResourceSync Sitemaps (Resource Lists) they may be made discoverable, again, by including multiple Sitemap directives...
In the latter case, how a destination can distinguish between regular Sitemaps and ResourceSync Sitemaps is not clear from the specification. Convention in naming?Constructor and Description |
---|
LinkExplorer(org.apache.http.impl.client.CloseableHttpClient httpClient,
ResourceSyncContext rsContext,
LambdaUtil.BiFunction_WithExceptions<URI,org.apache.http.HttpResponse,List<String>,?> responseReader) |
Modifier and Type | Method and Description |
---|---|
Result<LinkList> |
explore(URI uri,
ResultIndex index) |
execute, getCharset, getCurrentUri, getHttpClient, isKeepingHeaders, setKeepingHeaders
public LinkExplorer(org.apache.http.impl.client.CloseableHttpClient httpClient, ResourceSyncContext rsContext, LambdaUtil.BiFunction_WithExceptions<URI,org.apache.http.HttpResponse,List<String>,?> responseReader)
public Result<LinkList> explore(URI uri, ResultIndex index)
explore
in class AbstractUriExplorer
Copyright © 2017. All rights reserved.