Switch to ContainerPath variants in HandlerMapping's

This commit is contained in:
Rossen Stoyanchev
2017-07-01 20:05:17 -04:00
parent 145eab9c2f
commit 15cf9c1d78
10 changed files with 53 additions and 51 deletions

View File

@@ -262,6 +262,13 @@ public class PathPattern implements Comparable<PathPattern> {
}
}
// TODO: implement extractPathWithinPattern natively for PathContainer
public PathContainer extractPathWithinPattern(PathContainer path) {
String result = extractPathWithinPattern(path.value());
return PathContainer.parse(result, StandardCharsets.UTF_8);
}
/**
* Given a full path, determine the pattern-mapped part. <p>For example: <ul>
* <li>'{@code /docs/cvs/commit.html}' and '{@code /docs/cvs/commit.html} -> ''</li>