Class DirectResourceResolver

  • All Implemented Interfaces:
    ResourceResolver

    public class DirectResourceResolver
    extends java.lang.Object
    implements ResourceResolver
    A DirectResourceResolver is a ResourceResolver that resolves requests using the direct, native capabilities of the platform. For example a "file:" URI is resolved by finding the file in filestore, and an "http:" URI is resolved by making an HTTP request.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.transform.Source resolve​(ResourceRequest request)
      Process a resource request to deliver a resource
      • Methods inherited from class java.lang.Object

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

      • DirectResourceResolver

        public DirectResourceResolver​(Configuration config)
    • 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.