Java Code Examples for com.sun.corba.se.impl.orbutil.ORBUtility#getIOR()
The following examples show how to use
com.sun.corba.se.impl.orbutil.ORBUtility#getIOR() .
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: POAImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 2
Source File: POAImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
private byte[] internalReferenceToId( org.omg.CORBA.Object reference ) throws WrongAdapter { IOR ior = ORBUtility.getIOR( reference ) ; IORTemplateList thisTemplate = ior.getIORTemplates() ; ObjectReferenceFactory orf = getCurrentFactory() ; IORTemplateList poaTemplate = IORFactories.getIORTemplateList( orf ) ; if (!poaTemplate.isEquivalent( thisTemplate )) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. // If ior was created in this POA, the same ID was used for // every profile through the profile templates in the currentFactory, // so we will get the same result from any profile. Iterator iter = ior.iterator() ; if (!iter.hasNext()) throw iorWrapper().noProfilesInIor() ; TaggedProfile prof = (TaggedProfile)(iter.next()) ; ObjectId oid = prof.getObjectId() ; return oid.getId(); }
Example 3
Source File: InterceptorInvoker.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Update the client delegate in the event of a ForwardRequest, given the * information in the passed-in info object. */ private void updateClientRequestDispatcherForward( ClientRequestInfoImpl info ) { ForwardRequest forwardRequest = info.getForwardRequestException(); // ForwardRequest may be null if the forwarded IOR is set internal // to the ClientRequestDispatcher rather than explicitly through Portable // Interceptors. In this case, we need not update the client // delegate ForwardRequest object. if( forwardRequest != null ) { org.omg.CORBA.Object object = forwardRequest.forward; // Convert the forward object into an IOR: IOR ior = ORBUtility.getIOR( object ) ; info.setLocatedIOR( ior ); } }
Example 4
Source File: RequestInfoImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 5
Source File: ForwardException.java From JDKSourceCode1.8 with MIT License | 5 votes |
public synchronized IOR getIOR() { if (ior == null) { ior = ORBUtility.getIOR( obj ) ; } return ior ; }
Example 6
Source File: RequestInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 7
Source File: ForwardException.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getIOR() { if (ior == null) { ior = ORBUtility.getIOR( obj ) ; } return ior ; }
Example 8
Source File: RequestInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 9
Source File: ForwardException.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getIOR() { if (ior == null) { ior = ORBUtility.getIOR( obj ) ; } return ior ; }
Example 10
Source File: ForwardException.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getIOR() { if (ior == null) { ior = ORBUtility.getIOR( obj ) ; } return ior ; }
Example 11
Source File: RequestInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 12
Source File: RequestInfoImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 13
Source File: RequestInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 14
Source File: ForwardException.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getIOR() { if (ior == null) { ior = ORBUtility.getIOR( obj ) ; } return ior ; }
Example 15
Source File: INSServerRequestDispatcher.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * getINSReference if it is registered in INSObjectKeyMap. */ private IOR getINSReference( String insKey ) { IOR entry = ORBUtility.getIOR( orb.getLocalResolver().resolve( insKey ) ) ; if( entry != null ) { // If entry is not null then the locate is with an INS Object key, // so send a location forward with the right IOR. return entry; } throw wrapper.servantNotFound() ; }
Example 16
Source File: RequestInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Retrieves the IOR of the ForwardRequest exception. */ protected IOR getForwardRequestIOR() { if( this.forwardRequestIOR == null ) { if( this.forwardRequest != null ) { this.forwardRequestIOR = ORBUtility.getIOR( this.forwardRequest.forward ) ; } } return this.forwardRequestIOR; }
Example 17
Source File: INSServerRequestDispatcher.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * getINSReference if it is registered in INSObjectKeyMap. */ private IOR getINSReference( String insKey ) { IOR entry = ORBUtility.getIOR( orb.getLocalResolver().resolve( insKey ) ) ; if( entry != null ) { // If entry is not null then the locate is with an INS Object key, // so send a location forward with the right IOR. return entry; } throw wrapper.servantNotFound() ; }
Example 18
Source File: ForwardException.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public synchronized IOR getIOR() { if (ior == null) { ior = ORBUtility.getIOR( obj ) ; } return ior ; }
Example 19
Source File: IORFactories.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public static IOR getIOR( org.omg.CORBA.Object obj ) { return ORBUtility.getIOR( obj ) ; }
Example 20
Source File: IORFactories.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public static IOR getIOR( org.omg.CORBA.Object obj ) { return ORBUtility.getIOR( obj ) ; }