routd
routd copied to clipboard
A small and simple URL routing library for Java
Fix #11 . In general, the "more exact match" route takes precedence.
``` Exception in thread "main" java.lang.NullPointerException at org.bigtesting.routd.TreeRouter.route(TreeRouter.java:81) at RoutdTest.main(RoutdTest.kt:7) ``` Simple reproducable snippet: ```kotlin import org.bigtesting.routd.Route import org.bigtesting.routd.TreeRouter object RoutdTest { @JvmStatic fun main(args: Array) { val router =...
Hi! We are using Tree Router for finding best matching uri. Everything worked as we wanted until we started to use wildcard in the end of path (it should present...
Benchmark performance of the RegexRouter, and implement a trie-based Router. Compare the performance of the two Routers.
Example: The following is a snippet of code demonstrating how a Router and Routes can be used in conjunction with a Map to associate things, such as handlers, with routes....
The Readme needs to be updated to indicate the availability of the trie-based Router, after the next release.