Lines Matching refs:child

1987     private static String resolvePath(String base, String child,
1991 int cn = child.length();
2004 sb.append(child);
2018 private static URI resolve(URI base, URI child) {
2019 // check if child if opaque first so that NPE is thrown
2020 // if child is null.
2021 if (child.isOpaque() || base.isOpaque())
2022 return child;
2025 if ((child.scheme == null) && (child.authority == null)
2026 && child.path.equals("") && (child.fragment != null)
2027 && (child.query == null)) {
2029 && child.fragment.equals(base.fragment)) {
2039 ru.fragment = child.fragment;
2045 if (child.scheme != null)
2046 return child;
2050 ru.query = child.query;
2051 ru.fragment = child.fragment;
2054 if (child.authority == null) {
2060 String cp = (child.path == null) ? "" : child.path;
2063 ru.path = child.path;
2069 ru.authority = child.authority;
2070 ru.host = child.host;
2071 ru.userInfo = child.userInfo;
2072 ru.host = child.host;
2073 ru.port = child.port;
2074 ru.path = child.path;
2105 // identical, and the base path is a prefix of the child's path, then
2107 // child; otherwise, return the child.
2109 private static URI relativize(URI base, URI child) {
2110 // check if child if opaque first so that NPE is thrown
2111 // if child is null.
2112 if (child.isOpaque() || base.isOpaque())
2113 return child;
2114 if (!equalIgnoringCase(base.scheme, child.scheme)
2115 || !equal(base.authority, child.authority))
2116 return child;
2119 String cp = normalize(child.path);
2124 return child;
2129 v.query = child.query;
2130 v.fragment = child.fragment;