Lines Matching defs:base

175  * <i>base</i> URI.  The resulting URI is constructed from components of both
177 * base URI for those not specified in the original. For hierarchical URIs,
178 * the path of the original is resolved against the path of the base and then
185 * against the base URI <tt>http://java.sun.com/j2se/1.3/</tt> is the result
208 * against the relative base URI (1) yields the normalized, but still relative,
224 * that must be made relative to the base URI of the document wherever
231 * against the base URI
548 * href="#resolve-frag">resolved</a> against a base URI.
978 * <tt>"#foo"</tt>, to be usefully resolved against a base URI.
1987 private static String resolvePath(String base, String child,
1990 int i = base.lastIndexOf('/');
1997 path = base.substring(0, i + 1);
1999 StringBuffer sb = new StringBuffer(base.length() + cn);
2002 sb.append(base.substring(0, i + 1));
2018 private static URI resolve(URI base, URI child) {
2021 if (child.isOpaque() || base.isOpaque())
2028 if ((base.fragment != null)
2029 && child.fragment.equals(base.fragment)) {
2030 return base;
2033 ru.scheme = base.scheme;
2034 ru.authority = base.authority;
2035 ru.userInfo = base.userInfo;
2036 ru.host = base.host;
2037 ru.port = base.port;
2038 ru.path = base.path;
2040 ru.query = base.query;
2049 ru.scheme = base.scheme;
2055 ru.authority = base.authority;
2056 ru.host = base.host;
2057 ru.userInfo = base.userInfo;
2058 ru.port = base.port;
2066 ru.path = resolvePath(base.path, cp, base.isAbsolute());
2105 // identical, and the base path is a prefix of the child's path, then
2106 // return a relative URI that, when resolved against the base, yields the
2109 private static URI relativize(URI base, URI child) {
2112 if (child.isOpaque() || base.isOpaque())
2114 if (!equalIgnoringCase(base.scheme, child.scheme)
2115 || !equal(base.authority, child.authority))
2118 String bp = normalize(base.path);