< prev index next >

src/java.naming/share/classes/com/sun/jndi/toolkit/url/GenericURLContext.java

Print this page

        

*** 105,120 **** --- 105,122 ---- * format for operation by the Context methods. For schemes that treat the * leading slash as significant (such as "file"), * the subclass must override getURLSuffix() to get the correct behavior. * Remember, the behavior must match getRootURLContext(). * + * <pre>{@code * URL Suffix * foo://host:port <empty string> * foo://host:port/rest/of/name rest/of/name * foo:///rest/of/name rest/of/name * foo:/rest/of/name rest/of/name * foo:rest/of/name rest/of/name + * }</pre> */ protected Name getURLSuffix(String prefix, String url) throws NamingException { String suffix = url.substring(prefix.length()); if (suffix.length() == 0) { return new CompositeName();
< prev index next >