org.apache.hc.core5.http.impl.routing

## 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 Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static PathPatternMatcher` | `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PathPatternMatcher()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isBetter(String pattern, String bestMatch)`
    `boolean` | `match(String pattern, String path)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final PathPatternMatcher INSTANCE

  - ### Constructor Detail

    - #### PathPatternMatcher

          public PathPatternMatcher()

  - ### Method Detail

    - #### match

          public boolean match(String pattern,
                               String path)

    - #### isBetter

          public boolean isBetter(String pattern,
                                  String bestMatch)

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.