public static ResolveResult createUsingURL ( String url , Hashtable env ) throws NamingException { CNCtx ctx = new CNCtx ( ) ; if ( env != null ) { env = ( Hashtable ) env . clone ( ) ; } ctx . _env = env ; String rest = ctx . initUsingUrl ( env != null ? ( org . omg . CORBA . ORB ) env . get ( "java.naming.corba.orb" ) : null , url , env ) ; // rest is the INS name // Return the parsed form to prevent subsequent lookup // from parsing the string as a composite name // The caller should be aware that a toString() of the name // will yield its INS syntax, rather than a composite syntax return new ResolveResult ( ctx , parser . parse ( rest ) ) ; }
This method is used by the iiop and iiopname URL Context factories .