FileDocCategorySizeDatePackage
ORBDefaultInitRefResolverImpl.javaAPI DocJava SE 5 API1279Fri Aug 26 14:54:32 BST 2005com.sun.corba.se.impl.resolver

ORBDefaultInitRefResolverImpl

public class ORBDefaultInitRefResolverImpl extends Object implements com.sun.corba.se.spi.resolver.Resolver

Fields Summary
com.sun.corba.se.spi.orb.Operation
urlHandler
String
orbDefaultInitRef
Constructors Summary
public ORBDefaultInitRefResolverImpl(com.sun.corba.se.spi.orb.Operation urlHandler, String orbDefaultInitRef)

	this.urlHandler = urlHandler ;

	// XXX Validate the URL?
	this.orbDefaultInitRef = orbDefaultInitRef ;
    
Methods Summary
public java.util.Setlist()

	return new java.util.HashSet() ;
    
public org.omg.CORBA.Objectresolve(java.lang.String ident)

        // If the ORBDefaultInitRef is not defined simply return null
        if( orbDefaultInitRef == null ) {
	    return null;
        }

        String urlString;
        // If the ORBDefaultInitDef is  defined as corbaloc: then create the
        // corbaloc String in the format
        // <ORBInitDefaultInitDef Param>/<Identifier>
        // and resolve it using resolveCorbaloc method
        if( orbDefaultInitRef.startsWith( "corbaloc:" ) ) {
            urlString = orbDefaultInitRef + "/" + ident;
        } else {
            urlString = orbDefaultInitRef + "#" + ident;
        }

	return (org.omg.CORBA.Object)urlHandler.operate( urlString ) ;