org.netarchivesuite.heritrix3wrapper.xmlutils.XslUriResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of heritrix3-wrapper Show documentation
Show all versions of heritrix3-wrapper Show documentation
Wrapper library for unpacking and communicating with Heritrix 3.
package org.netarchivesuite.heritrix3wrapper.xmlutils;
import javax.xml.transform.Source;
import javax.xml.transform.TransformerException;
import javax.xml.transform.URIResolver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Implements an XSL URI resolver which can be used to resolve external XSL files.
* Unused - so a project for those dark January nights.
*/
public class XslUriResolver implements URIResolver {
/** Logging mechanism. */
private static Logger logger = LoggerFactory.getLogger(XslUriResolver.class.getName());
@Override
public Source resolve(String href, String base) throws TransformerException {
logger.info("URIResolver: href=" + href + " - base=" + base);
throw new UnsupportedOperationException("XslUriResolver.resolve(String href, String base)");
}
}