public class ProtocolRestrictor
extends java.lang.Object
XMLConstants.ACCESS_EXTERNAL_SCHEMA
,
which constrain the set of URIs that can be used by supplying a list of permitted protocols.Constructor and Description |
---|
ProtocolRestrictor(java.lang.String value)
Create a predicate from a list of allowed protocols.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(java.net.URI uri) |
java.lang.String |
toString() |
public ProtocolRestrictor(java.lang.String value)
The value is a comma-separated list of permitted protocols. A protocol is the
scheme portion of a URI, or in the case of the JAR protocol, "jar"
plus the scheme portion separated by colon. The value "all" gives access
to all protocols (which is the default). The value "" (empty string) disallows
all external resource access. (The format is thus the same as for
XMLConstants.ACCESS_EXTERNAL_SCHEMA
and similar attributes.)
value
- the list of allowed protocolsCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.