Package net.sf.saxon.lib
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(ResourceRequest request) Process a resource request to deliver a resourcevoidsetAllowedProtocols(String protocols)
-
Constructor Details
-
RestrictedResourceResolver
-
-
Method Details
-
setAllowedProtocols
-
resolve
Description copied from interface:ResourceResolverProcess a resource request to deliver a resource- Specified by:
resolvein interfaceResourceResolver- 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.
-