Java Code Examples for com.sun.corba.se.impl.orbutil.ORBUtility#connectAndGetIOR()
The following examples show how to use
com.sun.corba.se.impl.orbutil.ORBUtility#connectAndGetIOR() .
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: CDROutputStream_1_0.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void write_Object(org.omg.CORBA.Object ref) { if (ref == null) { IOR nullIOR = IORFactories.makeIOR( orb ) ; nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (ref instanceof org.omg.CORBA.LocalObject) throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); IOR ior = ORBUtility.connectAndGetIOR( orb, ref ) ; ior.write(parent); return; }
Example 2
Source File: CDROutputStream_1_0.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void write_Object(org.omg.CORBA.Object ref) { if (ref == null) { IOR nullIOR = IORFactories.makeIOR( orb ) ; nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (ref instanceof org.omg.CORBA.LocalObject) throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); IOR ior = ORBUtility.connectAndGetIOR( orb, ref ) ; ior.write(parent); return; }
Example 3
Source File: CDROutputStream_1_0.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void write_Object(org.omg.CORBA.Object ref) { if (ref == null) { IOR nullIOR = IORFactories.makeIOR( orb ) ; nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (ref instanceof org.omg.CORBA.LocalObject) throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); IOR ior = ORBUtility.connectAndGetIOR( orb, ref ) ; ior.write(parent); return; }
Example 4
Source File: ORBImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getFVDCodeBaseIOR() { checkShutdownState(); if (codeBaseIOR != null) // i.e. We are already connected to it return codeBaseIOR; // backward compatability 4365188 CodeBase cb; ValueHandler vh = ORBUtility.createValueHandler(); cb = (CodeBase)vh.getRunTimeCodeBase(); return ORBUtility.connectAndGetIOR( this, cb ) ; }
Example 5
Source File: IDLJavaSerializationOutputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public final void write_Object(org.omg.CORBA.Object value) { if (value == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (value instanceof org.omg.CORBA.LocalObject) { throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); } IOR ior = ORBUtility.connectAndGetIOR(orb, value); ior.write(parent); return; }
Example 6
Source File: ORBImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getFVDCodeBaseIOR() { checkShutdownState(); if (codeBaseIOR != null) // i.e. We are already connected to it return codeBaseIOR; // backward compatability 4365188 CodeBase cb; ValueHandler vh = ORBUtility.createValueHandler(); cb = (CodeBase)vh.getRunTimeCodeBase(); return ORBUtility.connectAndGetIOR( this, cb ) ; }
Example 7
Source File: ORBImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 8
Source File: IDLJavaSerializationOutputStream.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public final void write_Object(org.omg.CORBA.Object value) { if (value == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (value instanceof org.omg.CORBA.LocalObject) { throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); } IOR ior = ORBUtility.connectAndGetIOR(orb, value); ior.write(parent); return; }
Example 9
Source File: ORBImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 10
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 11
Source File: IDLJavaSerializationOutputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public final void write_Object(org.omg.CORBA.Object value) { if (value == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (value instanceof org.omg.CORBA.LocalObject) { throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); } IOR ior = ORBUtility.connectAndGetIOR(orb, value); ior.write(parent); return; }
Example 12
Source File: ORBImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 13
Source File: ORBImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getFVDCodeBaseIOR() { checkShutdownState(); if (codeBaseIOR != null) // i.e. We are already connected to it return codeBaseIOR; // backward compatability 4365188 CodeBase cb; ValueHandler vh = ORBUtility.createValueHandler(); cb = (CodeBase)vh.getRunTimeCodeBase(); return ORBUtility.connectAndGetIOR( this, cb ) ; }
Example 14
Source File: IDLJavaSerializationOutputStream.java From JDKSourceCode1.8 with MIT License | 5 votes |
public final void write_Object(org.omg.CORBA.Object value) { if (value == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (value instanceof org.omg.CORBA.LocalObject) { throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); } IOR ior = ORBUtility.connectAndGetIOR(orb, value); ior.write(parent); return; }
Example 15
Source File: ORBImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 16
Source File: ORBImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getFVDCodeBaseIOR() { checkShutdownState(); if (codeBaseIOR != null) // i.e. We are already connected to it return codeBaseIOR; // backward compatability 4365188 CodeBase cb; ValueHandler vh = ORBUtility.createValueHandler(); cb = (CodeBase)vh.getRunTimeCodeBase(); return ORBUtility.connectAndGetIOR( this, cb ) ; }
Example 17
Source File: ORBImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 18
Source File: IDLJavaSerializationOutputStream.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public final void write_Object(org.omg.CORBA.Object value) { if (value == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (value instanceof org.omg.CORBA.LocalObject) { throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); } IOR ior = ORBUtility.connectAndGetIOR(orb, value); ior.write(parent); return; }
Example 19
Source File: ORBImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Convert an object ref to a string. * @param obj The object to stringify. * @return A stringified object reference. */ public synchronized String object_to_string(org.omg.CORBA.Object obj) { checkShutdownState(); // Handle the null objref case if (obj == null) { IOR nullIOR = IORFactories.makeIOR( this ) ; return nullIOR.stringify(); } IOR ior = null ; try { ior = ORBUtility.connectAndGetIOR( this, obj ) ; } catch (BAD_PARAM bp) { // Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error. if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) { throw omgWrapper.notAnObjectImpl( bp ) ; } else // Not a local object problem: just rethrow the exception. // Do not wrap and log this, since it was already logged at its // point of origin. throw bp ; } return ior.stringify() ; }
Example 20
Source File: ORBImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public synchronized IOR getFVDCodeBaseIOR() { checkShutdownState(); if (codeBaseIOR != null) // i.e. We are already connected to it return codeBaseIOR; // backward compatability 4365188 CodeBase cb; ValueHandler vh = ORBUtility.createValueHandler(); cb = (CodeBase)vh.getRunTimeCodeBase(); return ORBUtility.connectAndGetIOR( this, cb ) ; }