Package org.jacorb.orb

Examples of org.jacorb.orb.TaggedComponentList


        decode_extensions(protocol_identifier.toLowerCase());
    }

    private void decode_extensions(String ident)
    {
        this.components = new TaggedComponentList();
        if (ident.equals("ssliop"))
        {
            SSL ssl = new SSL();
            ssl.port = (short)primaryAddress.getPort();
            String propname =
View Full Code Here


        else
        {
            List addresses = Arrays.asList (value.split(","));
            if (!addresses.isEmpty() && components == null)
            {
                components = new TaggedComponentList();
            }
            for (Iterator i = addresses.iterator(); i.hasNext();)
            {
                String addr = (String)i.next();
                IIOPAddress iaddr = new IIOPAddress();
View Full Code Here

     * Also excluded are non-IPv4 addresses for the moment.
     */
    private void addNetworkAddresses()
    {
        if (primaryAddress == null) return;
        if (components == null) components = new TaggedComponentList();
        try
        {
            for (Enumeration e = NetworkInterface.getNetworkInterfaces();
                 e.hasMoreElements();)
            {
View Full Code Here

   {

      this.groupIIOPProfile = iiop;
      this.tagGroup = new TagGroupTaggedComponent(groupVersion, domainId, groupId, groupRefVersion);

      TaggedComponentList list = new TaggedComponentList ();
      list.addComponent (TAG_GROUP.value, tagGroup, TagGroupTaggedComponentHelper.class);

      if (iiop != null)
      {
         list.addAll (iiop.getComponents ());
      }

      this.uipmc = new UIPMC_ProfileBody (new Version ((byte)1, (byte)0), address, port,
               list.asArray ());

      try
      {
         inetAddress = InetAddress.getByName (uipmc.the_address);
      }
View Full Code Here

         {
            parseMIOPCorbaloc (corbalocStr.substring (0, sub));
         }


         components = new TaggedComponentList ();

         CDROutputStream out = new CDROutputStream ();
         out.beginEncapsulatedArray ();
         TagGroupTaggedComponentHelper.write (out, tagGroup);
         components.addComponent (TAG_GROUP.value, out.getBufferCopy ());
         out.close ();

         if (sub != -1)
         {
            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)
View Full Code Here

                printTaggedComponents(orb, profile.getComponents().asArray(), out);
            }
            out.print("\n");
        }

        TaggedComponentList multiple_components = pior.getMultipleComponents();

        if( multiple_components.size() > 0 )
        {
            out.println("Components in MULTIPLE_COMPONENTS profile: " +
                               multiple_components.size() );

            printTaggedComponents(orb, multiple_components.asArray(), out);
        }

        // Print any unknown tags. This block is a simplified version of the private
        // ParsedIOR::decode function.
        for (int i=0; i < ior.profiles.length; i++)
View Full Code Here

    @Override
    public void add_ior_component (TaggedComponent component)
    {
        for (Iterator<TaggedComponentList> i = components.values().iterator(); i.hasNext();)
        {
            TaggedComponentList list = i.next();
            list.addComponent (component);
        }
    }
View Full Code Here

     * Adds the component to the profile with the given tag.
     */
    @Override
    public void add_ior_component_to_profile(TaggedComponent component, int id)
    {
        TaggedComponentList list = components.get(Integer.valueOf (id));

        if (list == null)
        {
            throw new org.omg.CORBA.BAD_PARAM
            (
                "unknown profile tag: " + id,
                MinorCodes.NO_SUCH_PROFILE,
                CompletionStatus.COMPLETED_MAYBE
            );
        }

        list.addComponent (component);
    }
View Full Code Here

            }

            objectKey = new byte[length];
            in.read_octet_array(objectKey, 0, length);

            components = (version != null && version.minor > 0) ? new TaggedComponentList(in)
                    : new TaggedComponentList();
        }
        finally
        {
            in.close();
        }
View Full Code Here

        this(false);

        this.version        = new org.omg.GIOP.Version((byte)1,(byte)minor);
        this.primaryAddress = address;
        this.objectKey      = objectKey;
        this.components     = new TaggedComponentList();
    }
View Full Code Here

TOP

Related Classes of org.jacorb.orb.TaggedComponentList

Copyright © 2018 www.massapicom. 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.