Java Code Examples for com.sun.corba.se.impl.naming.namingutil.CorbanameURL#getRIRFlag()
The following examples show how to use
com.sun.corba.se.impl.naming.namingutil.CorbanameURL#getRIRFlag() .
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 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 2
Source File: INSURLOperationImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 3
Source File: INSURLOperationImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 4
Source File: INSURLOperationImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 5
Source File: INSURLOperationImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 6
Source File: INSURLOperationImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 7
Source File: INSURLOperationImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 8
Source File: INSURLOperationImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 9
Source File: INSURLOperationImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }
Example 10
Source File: INSURLOperationImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * resolves a corbaname: url that is encapsulated in a CorbanameURL object. * * @return the CORBA.Object if resolution is successful */ private org.omg.CORBA.Object resolveCorbaname( CorbanameURL theCorbaName ) { org.omg.CORBA.Object result = null; try { NamingContextExt theNamingContext = null; if( theCorbaName.getRIRFlag( ) ) { // Case 1 of corbaname: rir# theNamingContext = getDefaultRootNamingContext( ); } else { // Case 2 of corbaname: ::hostname# org.omg.CORBA.Object corbalocResult = getIORUsingCorbaloc( theCorbaName ); if( corbalocResult == null ) { return null; } theNamingContext = NamingContextExtHelper.narrow( corbalocResult ); } String StringifiedName = theCorbaName.getStringifiedName( ); if( StringifiedName == null ) { // This means return the Root Naming context return theNamingContext; } else { return theNamingContext.resolve_str( StringifiedName ); } } catch( Exception e ) { clearRootNamingContextCache( ); return null; } }