Package de.wwu.scdh.saxon.harden
Class HardenedUnparsedTextResolver
- java.lang.Object
-
- net.sf.saxon.lib.StandardUnparsedTextResolver
-
- de.wwu.scdh.saxon.harden.HardenedUnparsedTextResolver
-
- All Implemented Interfaces:
net.sf.saxon.lib.UnparsedTextURIResolver
public class HardenedUnparsedTextResolver extends net.sf.saxon.lib.StandardUnparsedTextResolverBased onStandardURIResolver, this resolver restricts the access to the local file system by using aFilesystemFilter.The allowed locations are set from a system property or an environment variable, which define a list of paths. The name of the system property is
FileSystemFilter.PROPERTY. The name of the environment variable isFilesystemFilter.ENVIRON. Paths are separated byFilesystemFilter.SEPARATOR.Configuration errors result in an empty set of allowed paths, but will be notified on stderr.
~can be used to point to the user's home directory.- See Also:
FilesystemFilter
-
-
Constructor Summary
Constructors Constructor Description HardenedUnparsedTextResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Readerresolve(URI absoluteURI, String encoding, net.sf.saxon.Configuration config)
-
-
-
Method Detail
-
resolve
public Reader resolve(URI absoluteURI, String encoding, net.sf.saxon.Configuration config) throws net.sf.saxon.trans.XPathException
- Specified by:
resolvein interfacenet.sf.saxon.lib.UnparsedTextURIResolver- Overrides:
resolvein classnet.sf.saxon.lib.StandardUnparsedTextResolver- Throws:
net.sf.saxon.trans.XPathException
-
-