use of org.exist.xslt.EXistURIResolver in project exist by eXist-db.
the class ApacheFopProcessorAdapter method getResourceResolver.
/**
* Returns a scheme aware ResourceResolver which supports:
* file://
* exist:// (which will be translated to xmldb:exist://)
* http://
* https://
*
* @return The resource resolver
*/
private ResourceResolver getResourceResolver(final DBBroker broker, final String baseUri) {
final ResourceResolverFactory.SchemeAwareResourceResolverBuilder builder = ResourceResolverFactory.createSchemeAwareResourceResolverBuilder(ResourceResolverFactory.createDefaultResourceResolver());
final URIResolverAdapter uriResolver = new URIResolverAdapter(new EXistURISchemeURIResolver(new EXistURIResolver(broker.getBrokerPool(), baseUri)));
builder.registerResourceResolverForScheme("exist", uriResolver);
builder.registerResourceResolverForScheme("http", uriResolver);
builder.registerResourceResolverForScheme("https", uriResolver);
return builder.build();
}
Aggregations