Interface ResourceResolver

    • Method Detail

      • resolve

        javax.xml.transform.Source resolve​(ResourceRequest request)
                                    throws XPathException
        Process a resource request to deliver a resource
        Parameters:
        request - the resource request
        Returns:
        the returned Source; or null to delegate resolution to another resolver. The type of Source must correspond to the type of resource requested: for non-XML resources, it should generally be a StreamSource.
        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.