Package org.elasticsearch.common.util
Class URIPattern
org.elasticsearch.common.util.URIPattern
public class URIPattern
extends
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
ConstructorDescriptionpattern)
Constructs uri pattern -
Method Summary
Modifier and TypeMethodDescriptionboolean
uri)
Returns true if the given uri matches the patternstatic boolean
match(URIPattern[] patterns, uri)
toString()
Methods inherited from class java.lang.
, , , , , , , , ,
-
Constructor Details
-
URIPattern
public URIPattern( pattern)Constructs uri pattern
-
-
Method Details
-
match
public boolean match( uri)Returns true if the given uri matches the pattern -
match
-
toString
public toString()- Overrides:
in class
-