public class FsSitemapConverterProvider extends Object implements SitemapConverterProvider
SitemapConverterProvider
that provides a converter that both stores the response on disk and
returns the response unmarshalled as RsRoot
. The file location of the sitemap is decided by
calling PathFinder.findMetadataFilePath(URI)
for the given URI on the current PathFinder.Constructor and Description |
---|
FsSitemapConverterProvider() |
Modifier and Type | Method and Description |
---|---|
LambdaUtil.BiFunction_WithExceptions<URI,org.apache.http.HttpResponse,RsRoot,Exception> |
getConverter()
Provide the converter that returns an
RsRoot when given a URI and a HttpResponse. |
void |
setPathFinder(PathFinder pathFinder)
Set the
PathFinder that corresponds to the URI the provided converter is about to handle. |
FsSitemapConverterProvider |
withResourceSyncContext(ResourceSyncContext rsContext)
Set the
ResourceSyncContext for the provided converter. |
public LambdaUtil.BiFunction_WithExceptions<URI,org.apache.http.HttpResponse,RsRoot,Exception> getConverter()
SitemapConverterProvider
RsRoot
when given a URI and a HttpResponse.
The converter may throw an Exception.getConverter
in interface SitemapConverterProvider
public FsSitemapConverterProvider withResourceSyncContext(ResourceSyncContext rsContext)
SitemapConverterProvider
ResourceSyncContext
for the provided converter.withResourceSyncContext
in interface SitemapConverterProvider
rsContext
- ResourceSyncContext} for the provided converterpublic void setPathFinder(PathFinder pathFinder)
SitemapConverterProvider
PathFinder
that corresponds to the URI the provided converter is about to handle.setPathFinder
in interface SitemapConverterProvider
pathFinder
- PathFinder that corresponds to the URI the provided converter is about to handleCopyright © 2017. All rights reserved.