Lines Matching defs:uriPath
62 * @param uriPath the uriPath (as returned by java.net.URI#getPath()
65 public static String getParentUriPath(String uriPath) {
66 int idx = uriPath.lastIndexOf('/');
68 if (uriPath.endsWith("/")) {
69 uriPath = uriPath.substring(0,idx); // trim trailing slash
70 idx = uriPath.lastIndexOf('/'); // move idx to parent context
73 return uriPath.substring(0, idx)+"/";
77 * Calculate the normalized form of the given uriPath.
85 * @param uriPath path of a URI (as returned by java.net.URI#getPath()
88 public static String normalizeUriPath(String uriPath) {
89 if (uriPath.endsWith("/"))
90 return uriPath;
94 int idx = uriPath.lastIndexOf('/');
95 return uriPath.substring(0, idx+1);