Class ResourceResolverWrappingURIResolver

    • Constructor Detail

      • ResourceResolverWrappingURIResolver

        public ResourceResolverWrappingURIResolver​(javax.xml.transform.URIResolver uriResolver)
        Create a ResourceResolver by wrapping a supplied URIResolver
        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
        request - the resource request
        the returned Source; or null to delegate resolution to another resolver
        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 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.
        resolved - the SAXSource to be converted
        an equivalent StreamSource, ignoring any XML Reader.
      • getWrappedURIResolver

        public javax.xml.transform.URIResolver getWrappedURIResolver()