Package net.sf.saxon.lib
Class ProtocolRestricter
- java.lang.Object
-
- net.sf.saxon.lib.ProtocolRestricter
-
- All Implemented Interfaces:
java.util.function.Predicate<java.net.URI>
public class ProtocolRestricter extends java.lang.Object implements java.util.function.Predicate<java.net.URI>
This class implements the rules in a property such asXMLConstants.ACCESS_EXTERNAL_SCHEMA
, which constrain the set of URIs that can be used by supplying a list of permitted protocols.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.function.Predicate<java.net.URI>
make(java.lang.String value)
boolean
test(java.net.URI uri)
Evaluates this predicate on the given argument.java.lang.String
toString()
-
-
-
Method Detail
-
make
public static java.util.function.Predicate<java.net.URI> make(java.lang.String value)
-
test
public boolean test(java.net.URI uri)
Evaluates this predicate on the given argument.- Specified by:
test
in interfacejava.util.function.Predicate<java.net.URI>
- Parameters:
uri
- the input argument- Returns:
true
if the input argument matches the predicate, otherwisefalse
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-