com.sun.corba.se.impl.naming.namingutil.INSURL Java Examples

The following examples show how to use com.sun.corba.se.impl.naming.namingutil.INSURL. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: INSURLOperationImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #2
Source File: INSURLOperationImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #3
Source File: INSURLOperationImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #4
Source File: INSURLOperationImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #5
Source File: INSURLOperationImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #6
Source File: INSURLOperationImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #7
Source File: INSURLOperationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #8
Source File: INSURLOperationImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #9
Source File: INSURLOperationImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #10
Source File: INSURLOperationImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public Object operate( Object arg )
{
    if (arg instanceof String) {
        String str = (String)arg ;

        if (str.startsWith( ORBConstants.STRINGIFY_PREFIX ))
            // XXX handle this as just another URL scheme
            return getIORFromString( str ) ;
        else {
            INSURL insURL = insURLHandler.parseURL( str ) ;
            if (insURL == null)
                throw omgWrapper.soBadSchemeName() ;
            return resolveINSURL( insURL ) ;
        }
    }

    throw wrapper.stringExpected() ;
}
 
Example #11
Source File: INSURLOperationImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #12
Source File: INSURLOperationImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #13
Source File: INSURLOperationImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #14
Source File: INSURLOperationImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #15
Source File: INSURLOperationImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #16
Source File: INSURLOperationImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #17
Source File: INSURLOperationImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #18
Source File: INSURLOperationImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #19
Source File: INSURLOperationImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}
 
Example #20
Source File: INSURLOperationImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private org.omg.CORBA.Object resolveINSURL( INSURL theURLObject ) {
    // XXX resolve should be a method on INSURL
    if( theURLObject.isCorbanameURL() ) {
        return resolveCorbaname( (CorbanameURL)theURLObject );
    } else {
        return resolveCorbaloc( (CorbalocURL)theURLObject );
    }
}