Lines Matching defs:path

132         String path = u.getPath();
229 // If the authority is defined then the path is defined by the
232 path = "";
239 // Parse the file path if any
242 path = spec.substring(start, limit);
243 } else if (path != null && path.length() > 0) {
245 int ind = path.lastIndexOf('/');
249 path = path.substring(0, ind + 1) + seperator +
254 path = seperator + spec.substring(start, limit);
256 } else if (queryOnly && path != null) {
257 int ind = path.lastIndexOf('/');
260 path = path.substring(0, ind) + "/";
262 if (path == null)
263 path = "";
267 while ((i = path.indexOf("/./")) >= 0) {
268 path = path.substring(0, i) + path.substring(i + 2);
272 while ((i = path.indexOf("/../", i)) >= 0) {
279 if (i > 0 && (limit = path.lastIndexOf('/', i - 1)) >= 0 &&
280 (path.indexOf("/../", limit) != 0)) {
281 path = path.substring(0, limit) + path.substring(i + 3);
288 while (path.endsWith("/..")) {
289 i = path.indexOf("/..");
290 if ((limit = path.lastIndexOf('/', i - 1)) >= 0) {
291 path = path.substring(0, limit+1);
297 if (path.startsWith("./") && path.length() > 2)
298 path = path.substring(2);
301 if (path.endsWith("/."))
302 path = path.substring(0, path.length() -1);
305 setURL(u, protocol, host, port, authority, userInfo, path, query, ref);
384 * i.e., having the same protocol, host, port, and path.
522 * @param path the path component of the URL.
531 String authority, String userInfo, String path,
538 u.set(u.getProtocol(), host, port, authority, userInfo, path, query, ref);
578 String path = null;
584 path = file.substring(0, q);
586 path = file;
588 setURL(u, protocol, host, port, authority, userInfo, path, query, ref);