Class ProtocolRestricter

  • All Implemented Interfaces:

    public class ProtocolRestricter
    extends java.lang.Object
    implements java.util.function.Predicate<>
    This class implements the rules in a property such as XMLConstants.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<> make​(java.lang.String value)  
      boolean test​( uri)
      Evaluates this predicate on the given argument.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Method Detail

      • make

        public static java.util.function.Predicate<> make​(java.lang.String value)
      • test

        public boolean test​( uri)
        Evaluates this predicate on the given argument.
        Specified by:
        test in interface java.util.function.Predicate<>
        uri - the input argument
        true if the input argument matches the predicate, otherwise false
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object