Class UriPathRouter.BestMatcher<T>
- java.lang.Object
-
- org.apache.hc.core5.http.impl.routing.UriPathRouter.BestMatcher<T>
-
- All Implemented Interfaces:
java.util.function.BiFunction<java.lang.String,java.util.List<PathRoute<java.lang.String,T>>,T>
- Enclosing class:
- UriPathRouter<P,T>
static final class UriPathRouter.BestMatcher<T> extends java.lang.Object implements java.util.function.BiFunction<java.lang.String,java.util.List<PathRoute<java.lang.String,T>>,T>
Finds a match for the given path from a collection of URI patterns.Patterns may have three formats:
**<uri-path><uri-path>*
This class has no instance state.
-
-
Field Summary
Fields Modifier and Type Field Description private static UriPathRouter.BestMatcherINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateBestMatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tapply(java.lang.String path, java.util.List<PathRoute<java.lang.String,T>> routes)(package private) static <T> UriPathRouter.BestMatcher<T>getInstance()
-
-
-
Field Detail
-
INSTANCE
private static final UriPathRouter.BestMatcher INSTANCE
-
-
Method Detail
-
getInstance
static <T> UriPathRouter.BestMatcher<T> getInstance()
-
-