@Override public boolean is_equivalent(org.omg.CORBA.Object self, org.omg.CORBA.Object obj) { checkORB(); boolean result = true; if (self != obj) { ParsedIOR pior1 = new ParsedIOR( orb, obj.toString() ); ParsedIOR pior2 = new ParsedIOR( orb, self.toString() ); result = pior2.getIDString().equals( pior1.getIDString() ); } return result; }
@Override public org.omg.CORBA.Object duplicate( org.omg.CORBA.Object self ) { return orb._getDelegate (new ParsedIOR( orb, toString())); }
public ParsedIOR getParsedIOR() { synchronized ( bind_sync ) { // If the _pior has not been initialised due to the lazy // initialisation use the ior to create one. if (_pior == null) { if (ior == null) { // should never happen due to the checks in configure throw new INTERNAL ("Internal error - unable to initialise ParsedIOR as IOR is null"); } else { piorOriginal = new ParsedIOR (orb, ior); resetPior (); ior = null; } } return _pior; } }
public static String generateCorbalocForMultiIIOPProfiles(org.omg.CORBA.ORB orb, String ref) { ParsedIOR pior = new ParsedIOR((org.jacorb.orb.ORB) orb, ref); String result = null; String object_key = null; Iterator<Profile> iterator; for (iterator = pior.getProfiles().iterator(); iterator.hasNext();) { Profile profile = iterator.next(); if (profile instanceof IIOPProfile) { String s = createCorbalocForIIOPProfile((IIOPProfile) profile, true); if (result != null) { result += "," + s; } else { result = "corbaloc:" + s; object_key = parseKey(profile.get_object_key()); } } } if (result != null) { result += "/" + object_key; } return result; }
@Override public org.omg.CORBA.Object string_to_object (String str) { work_pending(); if (str == null) { return null; } try { ParsedIOR pior = new ParsedIOR( this, str ); if ( pior.isNull() ) { return null; } return _getDelegate(pior); } catch (Exception e) { logger.error("Exception while converting string to object", e); throw new BAD_PARAM(10, CompletionStatus.COMPLETED_NO); } }
ParsedIOR ior = new ParsedIOR( orb, (String)found );
final ParsedIOR pior = new ParsedIOR(jorb, iorString ); if (urlForm)
public void forwardToObj (org.omg.CORBA.Object obj) { String object_reference = orb.object_to_string(obj); if (object_reference != null && object_reference.indexOf( "IOR:" ) == 0) { Delegate delegate = (Delegate) ((ObjectImpl)obj)._get_delegate(); forwardPior (new ParsedIOR( orb, object_reference)); rebindWithProto (delegate == null ? null : delegate.getClientProtocols()); } else { throw new INV_OBJREF ("Not an IOR: " + object_reference); } }
public static String generateCorbaloc(org.omg.CORBA.ORB orb, org.omg.CORBA.Object ref) { ParsedIOR pior = new ParsedIOR((org.jacorb.orb.ORB) orb, orb.object_to_string(ref)); Profile profile = pior.getEffectiveProfile(); if (profile instanceof IIOPProfile) { return createCorbalocForIIOPProfile((IIOPProfile) profile); } else if (profile instanceof MIOPProfile) { return createCorbalocForMIOPProfile((MIOPProfile) profile); } else { throw new IllegalArgumentException("Profile type not suported: tag number=" + profile.tag()); } }
/** * This function setup all informations that will be needed later */ private void setImRInfo () { try { org.omg.CORBA.Object ref = this.orb_.resolve_initial_references("ImplRepoService"); this.pior = new ParsedIOR(this.orb_, this.orb_.object_to_string (ref)); this.corbaloc = CorbaLoc.generateCorbalocForMultiIIOPProfiles (this.orb_, ref); this.profile = (IIOPProfile) this.pior.getEffectiveProfile(); } catch (org.omg.CORBA.ORBPackage.InvalidName e) { throw new INTERNAL ("ImRAccessImpl.setImRInfo: unable to resolve TAO ImplRepoService: " + e.toString()); } }
(new ParsedIOR( (org.jacorb.orb.ORB) orb, _ior)).getIORString());