Examples of TaggedProfile


Examples of org.omg.IOP.TaggedProfile

                    TaggedComponentHelper.write(profileDataStream, compSeq.value[i]);
                }
            }

            // Populate the TaggedProfile for return.
            tagged_profile.value = new TaggedProfile
            (
                    this.tag(),
                    profileDataStream.getBufferCopy()
            );
        }
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

     * @exception ForwardRequest if an error occurs
     */
    public void send_request( ClientRequestInfo ri )
        throws ForwardRequest
    {
        TaggedProfile effProfile = ri.effective_profile();

        if ( ! once &&
            effProfile.tag == TAG_INTERNET_IOP.value &&
            ri.forward_reference() == null)
        {
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

     * @exception ForwardRequest if an error occurs
     */
    public void send_request( ClientRequestInfo ri )
        throws ForwardRequest
    {
        TaggedProfile effProfile = ri.effective_profile();

        if (!once &&
            effProfile.tag == TAG_INTERNET_IOP.value &&
            ri.forward_reference() == null)
        {
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

                      openEncapsulation ();
                      org.omg.MIOP.UIPMC_ProfileBody upb = org.omg.MIOP.UIPMC_ProfileBodyHelper.read (this);
                      closeEncapsulation();

                      TaggedProfile uipmc = new TaggedProfile
                         (org.omg.IOP.TAG_UIPMC.value, MulticastUtil.getEncapsulatedUIPMCProfile ((ORB)orb, upb));
                      addr.profile (uipmc);
                   }
                   else
                   {
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

                //GIOP 1.2
                TargetAddress addr = new TargetAddress();

                if (isMIOP)
                {
                    TaggedProfile uipmc = new TaggedProfile (org.omg.IOP.TAG_UIPMC.value, MulticastUtil.getEncapsulatedUIPMCProfile (orb, connection));
                    addr.profile (uipmc);
                }
                else
                {
                    addr.object_key( object_key );
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

         {
            groupIIOPProfile = (IIOPProfile)new ParsedIOR (orb, "corbaloc:" +
                     corbalocStr.substring (sub + 1)).getEffectiveProfile ();

            objectKey = groupIIOPProfile.get_object_key ();
            TaggedProfile taggedProfile = groupIIOPProfile.asTaggedProfile ();
            components.addComponent (taggedProfile.tag, taggedProfile.profile_data);
         }

         uipmc.components = components.asArray ();
      }

      if (tagGroup == null)
      {
         if (logger.isDebugEnabled ())
         {
            logger.debug ("MIOPProfile inspecting uipmc components.");
         }

         components = new TaggedComponentList ();
         for (int i = 0; i < uipmc.components.length; i++)
         {
            TaggedComponent component = uipmc.components[i];
            components.addComponent (component);
            switch (component.tag)
            {
               case TAG_GROUP.value:
               {
                  if (logger.isDebugEnabled ())
                  {
                     logger.debug ("MIOPProfile inspecting tagGroup.");
                  }

                  CDRInputStream in2 = new CDRInputStream (orb, component.component_data);
                  in2.openEncapsulatedArray();
                  tagGroup = TagGroupTaggedComponentHelper.read (in2);
                  in2.close();
                  break;
               }
               case TAG_INTERNET_IOP.value:
               {
                  if (logger.isDebugEnabled ())
                  {
                     logger.debug ("MIOPProfile inspecting group iiop profile.");
                  }
                  IOR ior = new IOR ("IDL:omg.org/CORBA/Object:1.0",
                           new TaggedProfile[] { new TaggedProfile (component.tag,
                                    component.component_data) });

                  groupIIOPProfile = (IIOPProfile)new ParsedIOR (orb, ior).getEffectiveProfile ();
               }
            }
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

         UIPMC_ProfileBodyHelper.write (out, uipmc);
         data = out.getBufferCopy ();
         out.close ();
      }

      taggedProfile.value = new TaggedProfile (TAG_UIPMC.value, data);
   }
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

    * assuming an appropriate ETF::Factories implementation is available
    * for the profile in use.
    */
    public static byte[] extractObjectKey(TargetAddress addr, ORB orb)
    {
        TaggedProfile tp = null;
        switch (addr.discriminator())
        {
            case KeyAddr.value:
            {
                return addr.object_key();
            }
            case ProfileAddr.value:
            {
                tp = new TaggedProfile(addr.profile().tag, addr.profile().profile_data);
                break;
            }
            case ReferenceAddr.value:
            {
                IORAddressingInfo info = addr.ior();
                tp = new TaggedProfile(info.ior.profiles[info.selected_profile_index].tag,
                                       info.ior.profiles[info.selected_profile_index].profile_data);
                break;
            }
            default:
            {
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

                    throw new INTERNAL("Unknown GIOP version tag " + version.minor + " when marshalling for IIOPProfile");
                }
            }

            // Populate the TaggedProfile for return.
            tagged_profile.value = new TaggedProfile
            (
                    this.tag(),
                    profileDataStream.getBufferCopy()
            );
        }
View Full Code Here

Examples of org.omg.IOP.TaggedProfile

    (TaggedComponentList components)
    {
        CDROutputStream out = new CDROutputStream(this);
        out.beginEncapsulatedArray();
        MultipleComponentProfileHelper.write(out, components.asArray());
        return new TaggedProfile
               (
                   TAG_MULTIPLE_COMPONENTS.value,
                   out.getBufferCopy()
               );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.