Class URIPattern


  • public class URIPattern
    extends java.lang.Object
    URI Pattern matcher The pattern is URI in which authority, path, query and fragment can be replace with simple pattern. For example: foobar://*.local/some_path/*?*#* will match all uris with schema foobar in local domain with any port, with path that starts some_path and with any query and fragment.
    • Constructor Summary

      Constructors 
      Constructor Description
      URIPattern​(java.lang.String pattern)
      Constructs uri pattern
    • Method Summary

      Modifier and Type Method Description
      boolean match​(java.net.URI uri)
      Returns true if the given uri matches the pattern
      static boolean match​(URIPattern[] patterns, java.net.URI uri)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • URIPattern

        public URIPattern​(java.lang.String pattern)
        Constructs uri pattern
    • Method Detail

      • match

        public boolean match​(java.net.URI uri)
        Returns true if the given uri matches the pattern
      • match

        public static boolean match​(URIPattern[] patterns,
                                    java.net.URI uri)
      • toString

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