public class Expedition extends Object
Constructor and Description |
---|
Expedition(org.apache.http.impl.client.CloseableHttpClient httpClient,
ResourceSyncContext rsContext) |
Modifier and Type | Method and Description |
---|---|
static URI |
createRobotsUri(URI uri)
Compose the robots URI from a given random URI.
|
static URI |
createWellKnownUri(URI uri)
Compose the well-known URI for ResourceSync from a given random URI.
|
List<ResultIndex> |
explore(String url)
Gather ResourceSync Framework documents from a source in ResultIndexes.
|
ResultIndex |
exploreAndMerge(String url) |
public Expedition(org.apache.http.impl.client.CloseableHttpClient httpClient, ResourceSyncContext rsContext)
public static URI createWellKnownUri(URI uri)
/.well-known/resourcesync
it will return the given URI.{server-root}/.well-known/resourcesync
uri
- a random URI to start with.public static URI createRobotsUri(URI uri)
/robots.txt
it will return the given URI.{server-root}/robots.txt
uri
- a random URI to start with.public List<ResultIndex> explore(String url) throws URISyntaxException, InterruptedException
url
- the starting url to exploreURISyntaxException
- if the url could not be converted to a URI.InterruptedException
- at Executor interrupts.public ResultIndex exploreAndMerge(String url) throws URISyntaxException, InterruptedException
Copyright © 2017. All rights reserved.