Lines Matching defs:url
26 package com.sun.jndi.url.rmi;
32 import com.sun.jndi.toolkit.url.GenericURLContext;
55 * Resolves the registry portion of "url" to the corresponding
59 protected ResolveResult getRootURLContext(String url, Hashtable<?,?> env)
62 if (!url.startsWith("rmi:")) {
64 "rmiURLContext: name is not an RMI URL: " + url));
73 int i = 4; // index into url, following the "rmi:"
75 if (url.startsWith("//", i)) { // parse "//host:port"
77 int slash = url.indexOf('/', i);
79 slash = url.length();
81 if (url.startsWith("[", i)) { // at IPv6 literal
82 int brac = url.indexOf(']', i + 1);
85 "rmiURLContext: name is an Invalid URL: " + url);
87 host = url.substring(i, brac + 1); // include brackets
90 int colon = url.indexOf(':', i);
95 host = url.substring(i, hostEnd);
100 if ( url.startsWith(":", i)) { // parse port
102 port = Integer.parseInt(url.substring(i, slash));
105 "rmiURLContext: name is an Invalid URL: " + url);
113 if (url.startsWith("/", i)) { // skip "/" before object name
116 if (i < url.length()) {
117 objName = url.substring(i);