Class PathPatternMatcher

java.lang.Object
org.apache.hc.core5.http.impl.routing.PathPatternMatcher

@Contract(threading=STATELESS) public final class PathPatternMatcher extends Object
URI path component pattern matcher.

Patterns may have three formats:

  • *
  • *<uri-path>
  • <uri-path>*
Since:
5.3
  • Field Details

  • Constructor Details

    • PathPatternMatcher

      public PathPatternMatcher()
  • Method Details

    • match

      public boolean match(String pattern, String path)
    • isBetter

      public boolean isBetter(String pattern, String bestMatch)