Class ProtocolRestrictor.RestrictedResourceResolver

java.lang.Object
net.sf.saxon.lib.ProtocolRestrictor.RestrictedResourceResolver
All Implemented Interfaces:
ResourceResolver
Enclosing class:
ProtocolRestrictor

public static class ProtocolRestrictor.RestrictedResourceResolver extends Object implements ResourceResolver
  • Constructor Details

  • Method Details

    • setAllowedProtocols

      public void setAllowedProtocols(String protocols)
    • resolve

      public Source resolve(ResourceRequest request) throws XPathException
      Description copied from interface: ResourceResolver
      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. 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.