if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
final Context context = NamingManager.getURLContext(nameScheme, environment); if (context != null) { return new ContextResult(context, true); final Context context = NamingManager.getURLContext(nameScheme, environment); if (context != null) { return new ContextResult(context, true);
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
/** * Creates an Initial Context for beginning name resolution. Special * requirements of this context are supplied using <code>environment</code>. * @param env The possibly null environment specifying information * to be used in the creation of the initial context. * @return A non-null initial context object that implements the Context * interface. * @exception NamingException If cannot create an initial context. */ public Context getInitialContext(Hashtable<?, ?> env) throws NamingException { String provider = (String) env.get(Context.PROVIDER_URL); String protocol = provider.substring(0, provider.indexOf(':')); Context ctx = NamingManager.getURLContext(protocol, env); return (Context) ctx.lookup(provider); } }
public static Context getURLContext(String name, Hashtable<Object, Object> env) throws NamingException { String scheme = getURLScheme(name); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, env); if (ctx != null) { return ctx; } } return null; }
@Override protected Context getURLOrDefaultInitCtx(String name) throws NamingException { String scheme = getURLScheme(name); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, myProps); if (ctx != null) { return ctx; } } return getDefaultInitCtx(); }
@Override protected Context getURLOrDefaultInitCtx(String name) throws NamingException { String scheme = getURLScheme(name); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, myProps); if (ctx != null) { return ctx; } } return getDefaultInitCtx(); }
@Override protected Context getURLOrDefaultInitCtx(String name) throws NamingException { String scheme = getURLScheme(name); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, myProps); if (ctx != null) { return ctx; } } return getDefaultInitCtx(); }
public static Context getURLContext(Name name, Hashtable<Object, Object> env) throws NamingException { if (name.size() > 0) { String first = name.get(0); String scheme = getURLScheme(first); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, env); if (ctx != null) { return ctx; } } } return null; }
@Override protected Context getURLOrDefaultInitCtx(Name name) throws NamingException { if (name.size() > 0) { String first = name.get(0); String scheme = getURLScheme(first); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, myProps); if (ctx != null) { return ctx; } } } return getDefaultInitCtx(); }
@Override protected Context getURLOrDefaultInitCtx(Name name) throws NamingException { if (name.size() > 0) { String first = name.get(0); String scheme = getURLScheme(first); if (scheme != null) { Context ctx = NamingManager.getURLContext(scheme, myProps); if (ctx != null) { return ctx; } } } return getDefaultInitCtx(); }
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");
Context ctx = NamingManager.getURLContext(scheme, getEnvironment()); if(ctx!=null){ return ctx.lookup(name);
Context ctx0 = NamingManager.getURLContext(scheme, myProps); if (ctx0 != null) { return ctx0;
if (pos > 0) { String scheme = name.substring(0, pos); Context ctx = NamingManager.getURLContext(scheme, environment); if (ctx == null) { throw new NamingException("scheme " + scheme + " not recognized");