Class 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 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<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()  
      • 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<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 interface java.util.function.Predicate<java.net.URI>
        Parameters:
        uri - the input argument
        Returns:
        true if the input argument matches the predicate, otherwise false
      • toString

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