Package dev.relism.flash.routing
Class PathUtils
java.lang.Object
dev.relism.flash.routing.PathUtils
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
sanitize
Sanitizes a path segment to ensure it starts with '/' and has no trailing slash. Replaces multiple slashes with a single one. -
join
Joins two path segments and ensures the result is sanitized. Prevents "double namespace" if the path already starts with the base.
-