public org.omg.IOP.TaggedProfile effective_profile() { for (int i = 0; i < IOR_.profiles.length; i++) if (IOR_.profiles[i].tag == profileInfo_.id) { org.omg.IOP.TaggedProfile result = new org.omg.IOP.TaggedProfile(); result.tag = IOR_.profiles[i].tag; result.profile_data = new byte[IOR_.profiles[i].profile_data.length]; System.arraycopy(IOR_.profiles[i].profile_data, 0, result.profile_data, 0, IOR_.profiles[i].profile_data.length); return result; } // // This shouldn't happen // org.apache.yoko.orb.OB.Assert._OB_assert(false); return null; }
public static org.omg.IOP.TaggedProfile read (org.omg.CORBA.portable.InputStream istream) { org.omg.IOP.TaggedProfile value = new org.omg.IOP.TaggedProfile (); value.tag = istream.read_ulong (); int _len0 = istream.read_long (); value.profile_data = new byte[_len0]; istream.read_octet_array (value.profile_data, 0, _len0); return value; }
public static TaggedProfile read(org.omg.CORBA.portable.InputStream in) { TaggedProfile _ob_v = new TaggedProfile(); _ob_v.tag = ProfileIdHelper.read(in); int len0 = in.read_ulong(); _ob_v.profile_data = new byte[len0]; in.read_octet_array(_ob_v.profile_data, 0, len0); return _ob_v; }
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 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; }
private TaggedProfile createMultipleComponentsProfile (TaggedComponentList components) { CDROutputStream out = new CDROutputStream(this); out.beginEncapsulatedArray(); MultipleComponentProfileHelper.write(out, components.asArray()); return new TaggedProfile ( TAG_MULTIPLE_COMPONENTS.value, out.getBufferCopy() ); }
/** * Encode this profile as a TaggedProfile (marshaled). * * @param taggedProfile a tagged profile holder. * @param taggedComponentSeq unused. */ @Override public void marshal (TaggedProfileHolder taggedProfile, TaggedComponentSeqHolder taggedComponentSeq) { if (data == null) { CDROutputStream out = new CDROutputStream (); out.beginEncapsulatedArray (); UIPMC_ProfileBodyHelper.write (out, uipmc); data = out.getBufferCopy (); out.close (); } taggedProfile.value = new TaggedProfile (TAG_UIPMC.value, data); }
public static org.omg.IOP.TaggedProfile read (final org.omg.CORBA.portable.InputStream in) { org.omg.IOP.TaggedProfile result = new org.omg.IOP.TaggedProfile(); result.tag=in.read_ulong(); int _lresult_profile_data0 = in.read_long(); try { int x = in.available(); if ( x > 0 && _lresult_profile_data0 > x ) { throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lresult_profile_data0); } } catch (java.io.IOException e) { } result.profile_data = new byte[_lresult_profile_data0]; in.read_octet_array(result.profile_data,0,_lresult_profile_data0); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.IOP.TaggedProfile s)
public static org.omg.IOP.TaggedProfile read (final org.omg.CORBA.portable.InputStream in) { org.omg.IOP.TaggedProfile result = new org.omg.IOP.TaggedProfile(); result.tag=in.read_ulong(); int _lresult_profile_data0 = in.read_long(); try { int x = in.available(); if ( x > 0 && _lresult_profile_data0 > x ) { throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lresult_profile_data0); } } catch (java.io.IOException e) { } result.profile_data = new byte[_lresult_profile_data0]; in.read_octet_array(result.profile_data,0,_lresult_profile_data0); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.IOP.TaggedProfile s)
new TaggedProfile[] { new TaggedProfile (component.tag, component.component_data) });
ior.profiles = new org.omg.IOP.TaggedProfile[the_ior_template.profiles.length]; for (int profile = 0; profile < the_ior_template.profiles.length; ++profile) { ior.profiles[profile] = new org.omg.IOP.TaggedProfile(); ior.profiles[profile].tag = the_ior_template.profiles[profile].tag; ior.profiles[profile].profile_data = new byte[the_ior_template.profiles[profile].profile_data.length];
ior.profiles = new org.omg.IOP.TaggedProfile[the_ior_template.profiles.length]; for (int profile = 0; profile < the_ior_template.profiles.length; ++profile) { ior.profiles[profile] = new org.omg.IOP.TaggedProfile(); ior.profiles[profile].tag = the_ior_template.profiles[profile].tag; ior.profiles[profile].profile_data = new byte[the_ior_template.profiles[profile].profile_data.length];
org.omg.IOP.TaggedProfile profile = new org.omg.IOP.TaggedProfile(); profile.tag = org.omg.IOP.TAG_INTERNET_IOP.value;
tp = new TaggedProfile(addr.profile().tag, addr.profile().profile_data); break; tp = new TaggedProfile(info.ior.profiles[info.selected_profile_index].tag, info.ior.profiles[info.selected_profile_index].profile_data); break;
ior.value.profiles.length); ior.value.profiles = profiles; ior.value.profiles[len - 1] = new org.omg.IOP.TaggedProfile(); ior.value.profiles[len - 1].tag = org.omg.IOP.TAG_INTERNET_IOP.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); ior.value.profiles.length); ior.value.profiles = profiles; ior.value.profiles[len - 1] = new org.omg.IOP.TaggedProfile(); ior.value.profiles[len - 1].tag = org.omg.IOP.TAG_INTERNET_IOP.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(); ior.value.profiles.length); ior.value.profiles = profiles; ior.value.profiles[len - 1] = new org.omg.IOP.TaggedProfile(); ior.value.profiles[len - 1].tag = org.omg.IOP.TAG_INTERNET_IOP.value; org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer();
ior.type_id = id; ior.profiles = new org.omg.IOP.TaggedProfile[1]; ior.profiles[0] = new org.omg.IOP.TaggedProfile(); ior.profiles[0].tag = org.omg.IOP.TAG_INTERNET_IOP.value;
tagged_profile.value = new TaggedProfile
closeEncapsulation(); TaggedProfile uipmc = new TaggedProfile (org.omg.IOP.TAG_UIPMC.value, MulticastUtil.getEncapsulatedUIPMCProfile ((ORB)orb, upb)); addr.profile (uipmc);
TaggedProfile uipmc = new TaggedProfile (org.omg.IOP.TAG_UIPMC.value, MulticastUtil.getEncapsulatedUIPMCProfile (orb, connection)); addr.profile (uipmc);