PathContainer parses URL paths only
Collapse non-URL vs URL based path parsing into one essentially supporting URL paths only.
This commit is contained in:
@@ -79,7 +79,7 @@ public interface ServerRequest {
|
||||
* Return the request path as {@code PathContainer}.
|
||||
*/
|
||||
default PathContainer pathContainer() {
|
||||
return PathContainer.parseUrlPath(path());
|
||||
return PathContainer.parsePath(path());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -142,7 +142,7 @@ public class ResourceUrlProvider implements ApplicationListener<ContextRefreshed
|
||||
int queryIndex = getQueryIndex(uriString);
|
||||
String lookupPath = uriString.substring(0, queryIndex);
|
||||
String query = uriString.substring(queryIndex);
|
||||
PathContainer parsedLookupPath = PathContainer.parseUrlPath(lookupPath);
|
||||
PathContainer parsedLookupPath = PathContainer.parsePath(lookupPath);
|
||||
if (logger.isTraceEnabled()) {
|
||||
logger.trace("Getting resource URL for lookup path \"" + lookupPath + "\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user