Class ResourceResolverWrappingLSResourceResolver

  • All Implemented Interfaces:
    ResourceResolver

    public class ResourceResolverWrappingLSResourceResolver
    extends java.lang.Object
    implements ResourceResolver
    This class implements the Saxon ResourceResolver interface as a wrapper around a DOM Level 3 LSResourceResolver. This serves two purposes: it allows the same underlying object to be used in both roles, and it allows an LSResourceResolver to be passed around the system in places where a URIResolver is expected, for example in the PipelineConfiguration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.w3c.dom.ls.LSResourceResolver getLSResourceResolver()  
      javax.xml.transform.Source resolve​(ResourceRequest request)
      Called by an XSLT processor when it encounters an xsl:include, xsl:import, or document() function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceResolverWrappingLSResourceResolver

        public ResourceResolverWrappingLSResourceResolver​(org.w3c.dom.ls.LSResourceResolver resolver)
    • Method Detail

      • getLSResourceResolver

        public org.w3c.dom.ls.LSResourceResolver getLSResourceResolver()
      • resolve

        public javax.xml.transform.Source resolve​(ResourceRequest request)
                                           throws XPathException
        Called by an XSLT processor when it encounters an xsl:include, xsl:import, or document() function.
        Specified by:
        resolve in interface ResourceResolver
        Parameters:
        request - the resource request
        Returns:
        A Source object, or null if the href cannot be resolved, and the processor should try to resolve the URI itself.
        Throws:
        XPathException - if an error occurs when trying to resolve the URI.