Class ResourceResolverWrappingURIResolver

    • Method Detail

      • resolve

        public Source resolve​(ResourceRequest request)
                       throws XPathException
        Process a resource request to deliver a resource
        Specified by:
        resolve in interface ResourceResolver
        Parameters:
        request - the resource request
        Returns:
        the returned Source; or null to delegate resolution to another resolver
        Throws:
        XPathException - if the request is invalid in some way, or if the identified resource is unsuitable, or if resolution is to fail rather than being delegated to another resolver.
      • convertToStreamSource

        public static StreamSource convertToStreamSource​(SAXSource resolved)
        Convert SAXSource to StreamSource. The XML Reader is ignored, since we're concerned here with non-XML resources.
        Parameters:
        resolved - the SAXSource to be converted
        Returns:
        an equivalent StreamSource, ignoring any XML Reader.
      • getWrappedURIResolver

        public URIResolver getWrappedURIResolver()