public static IOR read(org.omg.CORBA.portable.InputStream in) { IOR _ob_v = new IOR(); _ob_v.type_id = in.read_string(); int len0 = in.read_ulong(); _ob_v.profiles = new TaggedProfile[len0]; for(int i0 = 0; i0 < len0; i0++) _ob_v.profiles[i0] = TaggedProfileHelper.read(in); return _ob_v; }
public static org.omg.IOP.IOR read (org.omg.CORBA.portable.InputStream istream) { org.omg.IOP.IOR value = new org.omg.IOP.IOR (); value.type_id = istream.read_string (); int _len0 = istream.read_long (); value.profiles = new org.omg.IOP.TaggedProfile[_len0]; for (int _o1 = 0;_o1 < value.profiles.length; ++_o1) value.profiles[_o1] = org.omg.IOP.TaggedProfileHelper.read (istream); return value; }
public IOR newObjectKey(String objectId) { String the_object_key = new String(get_object_key()); int position = the_object_key.indexOf("RecoveryManager"); String new_object_key = the_object_key.substring(0, position).concat(objectId); IOR new_ior = new IOR(); List profiles = getProfiles(); new_ior.type_id = getTypeId(); new_ior.profiles = new TaggedProfile[profiles.size()]; for (int i = 0; i < profiles.size(); i++) { IIOPProfile pb = (IIOPProfile) profiles.get(i); IIOPProfile new_pb = (IIOPProfile) pb.copy(); new_pb.set_object_key(new_object_key.getBytes(StandardCharsets.UTF_8)); new_ior.profiles[i] = new TaggedProfile(); new_ior.profiles[i].tag = 0; // IIOP TaggedProfileHolder holder = new TaggedProfileHolder(new_ior.profiles[i]); new_pb.marshal(holder, null); new_ior.profiles[i].profile_data = holder.value.profile_data; } return new_ior; }
public IOR newObjectKey(String objectId) { String the_object_key = new String(get_object_key()); int position = the_object_key.indexOf("RecoveryManager"); String new_object_key = the_object_key.substring(0, position).concat(objectId); IOR new_ior = new IOR(); List profiles = getProfiles(); new_ior.type_id = getTypeId(); new_ior.profiles = new TaggedProfile[profiles.size()]; for (int i = 0; i < profiles.size(); i++) { IIOPProfile pb = (IIOPProfile) profiles.get(i); IIOPProfile new_pb = (IIOPProfile) pb.copy(); new_pb.set_object_key(new_object_key.getBytes()); new_ior.profiles[i] = new TaggedProfile(); new_ior.profiles[i].tag = 0; // IIOP TaggedProfileHolder holder = new TaggedProfileHolder(new_ior.profiles[i]); new_pb.marshal(holder, null); new_ior.profiles[i].profile_data = holder.value.profile_data; } return new_ior; }
public void write_Object(org.omg.CORBA.Object value) { if (value == null) { logger.finest("Writing a null CORBA object value"); org.omg.IOP.IOR ior = new org.omg.IOP.IOR(); ior.type_id = ""; ior.profiles = new org.omg.IOP.TaggedProfile[0]; org.omg.IOP.IORHelper.write(this, ior); } else { if (value instanceof org.omg.CORBA.LocalObject) throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorLocalObject), org.apache.yoko.orb.OB.MinorCodes.MinorLocalObject, org.omg.CORBA.CompletionStatus.COMPLETED_NO); Delegate p = (Delegate) ((org.omg.CORBA.portable.ObjectImpl) value) ._get_delegate(); p._OB_marshalOrigIOR(this); } }
public static org.omg.IOP.IOR read (final org.omg.CORBA.portable.InputStream in) { org.omg.IOP.IOR result = new org.omg.IOP.IOR(); result.type_id=in.read_string(); int _lresult_profiles2 = in.read_long(); try { int x = in.available(); if ( x > 0 && _lresult_profiles2 > x ) { throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lresult_profiles2); } } catch (java.io.IOException e) { } result.profiles = new org.omg.IOP.TaggedProfile[_lresult_profiles2]; for (int i=0;i<result.profiles.length;i++) { result.profiles[i]=org.omg.IOP.TaggedProfileHelper.read(in); } return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.IOP.IOR s)
public static org.omg.IOP.IOR read (final org.omg.CORBA.portable.InputStream in) { org.omg.IOP.IOR result = new org.omg.IOP.IOR(); result.type_id=in.read_string(); int _lresult_profiles2 = in.read_long(); try { int x = in.available(); if ( x > 0 && _lresult_profiles2 > x ) { throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lresult_profiles2); } } catch (java.io.IOException e) { } result.profiles = new org.omg.IOP.TaggedProfile[_lresult_profiles2]; for (int i=0;i<result.profiles.length;i++) { result.profiles[i]=org.omg.IOP.TaggedProfileHelper.read(in); } return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.IOP.IOR s)
taggedProfileList.toArray(tps); return new IOR(repId, tps);
taggedProfileList.toArray(tps); return new IOR(repId, tps);
return new IOR(repId, tps);
org.omg.IOP.IOR ior = new org.omg.IOP.IOR(); ior.type_id = ""; ior.profiles = new org.omg.IOP.TaggedProfile[profiles.size()];
org.omg.IOP.IOR ior = new org.omg.IOP.IOR(); ior.type_id = repoid; ior.profiles = new org.omg.IOP.TaggedProfile[the_ior_template.profiles.length];
org.omg.IOP.IOR ior = new org.omg.IOP.IOR(); ior.type_id = repoid; ior.profiles = new org.omg.IOP.TaggedProfile[the_ior_template.profiles.length];
IOR ior = new IOR ("IDL:omg.org/CORBA/Object:1.0", new TaggedProfile[] { new TaggedProfile (component.tag, component.component_data) });
static public org.omg.IOP.IOR createIOR(String host, int port, String id, org.apache.yoko.orb.OCI.ProfileInfo profileInfo) { org.omg.IOP.IOR ior = new org.omg.IOP.IOR(); ior.type_id = id; ior.profiles = new org.omg.IOP.TaggedProfile[1];
public String object_to_string(org.omg.CORBA.Object p) { synchronized (this) { if (destroy_) throw new org.omg.CORBA.OBJECT_NOT_EXIST("ORB is destroyed"); } org.omg.IOP.IOR ior; if (p == null) { ior = new org.omg.IOP.IOR("", new org.omg.IOP.TaggedProfile[0]); } else { if (p instanceof org.omg.CORBA.LocalObject) throw new org.omg.CORBA.MARSHAL( org.apache.yoko.orb.OB.MinorCodes .describeMarshal(org.apache.yoko.orb.OB.MinorCodes.MinorLocalObject), org.apache.yoko.orb.OB.MinorCodes.MinorLocalObject, org.omg.CORBA.CompletionStatus.COMPLETED_NO); org.apache.yoko.orb.CORBA.Delegate delegate = (org.apache.yoko.orb.CORBA.Delegate) (((org.omg.CORBA.portable.ObjectImpl) p) ._get_delegate()); ior = delegate._OB_origIOR(); } org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); org.apache.yoko.orb.CORBA.OutputStream out = new org.apache.yoko.orb.CORBA.OutputStream( buf); out._OB_writeEndian(); org.omg.IOP.IORHelper.write(out, ior); String str = org.apache.yoko.orb.OB.HexConverter.octetsToAscii(buf .data(), buf.length()); return "IOR:" + str; }
org.omg.IOP.IOR iorTemplate = new org.omg.IOP.IOR(); iorTemplate.profiles = new org.omg.IOP.TaggedProfile[0]; iorTemplate.type_id = new String();