Class ResourceResolverWrappingURIResolver

    • Constructor Detail

      • ResourceResolverWrappingURIResolver

        public ResourceResolverWrappingURIResolver​(javax.xml.transform.URIResolver uriResolver)
        Create a ResourceResolver by wrapping a supplied URIResolver
        Parameters:
        uriResolver - the URIResolver to which this ResourceResolver will delegate
    • Method Detail

      • resolve

        public javax.xml.transform.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 javax.xml.transform.stream.StreamSource convertToStreamSource​(javax.xml.transform.sax.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 javax.xml.transform.URIResolver getWrappedURIResolver()