FileDocCategorySizeDatePackage
INSURLHandler.javaAPI DocJava SE 5 API1297Fri Aug 26 14:54:26 BST 2005com.sun.corba.se.impl.naming.namingutil

INSURLHandler

public class INSURLHandler extends Object
This class is the entry point to parse different types of INS URL's.
Author
Hemanth

Fields Summary
private static INSURLHandler
insURLHandler
private static final int
CORBALOC_PREFIX_LENGTH
private static final int
CORBANAME_PREFIX_LENGTH
Constructors Summary
private INSURLHandler()


       
    
Methods Summary
public static synchronized com.sun.corba.se.impl.naming.namingutil.INSURLHandlergetINSURLHandler()

        if( insURLHandler == null ) {
            insURLHandler = new INSURLHandler( );
        }
        return insURLHandler;
    
public INSURLparseURL(java.lang.String aUrl)

        String url = aUrl;
        if ( url.startsWith( "corbaloc:" ) == true ) {
            return new CorbalocURL( url.substring( CORBALOC_PREFIX_LENGTH ) ); 
        } else if ( url.startsWith ( "corbaname:" ) == true ) {
            return new CorbanameURL( url.substring( CORBANAME_PREFIX_LENGTH ) );
        } 
        return null;