Package org.jacorb.orb.iiop

Examples of org.jacorb.orb.iiop.IIOPProfile


            boolean found = false;

            // See if JacORB managed to parse this tag before into the ParsedIOR
            for (int j=0; j < profiles.size(); j++)
            {
                final IIOPProfile profile = (IIOPProfile)profiles.get(j);

                if (profile.tag () == tag)
                {
                    found = true;
                }

                if (tag == TAG_MULTIPLE_COMPONENTS.value)
View Full Code Here


        if (orb == null
            && (colon == 0
                || addr.startsWith("iiop:")
                || addr.startsWith("ssliop:")))
        {
            result = new IIOPProfile(addr);
        }
        else if (orb != null)
        {
            List<Factories> factories = orb.getTransportManager().getFactoriesList();
            for (Iterator<Factories> i = factories.iterator();
View Full Code Here

            throw new org.omg.CORBA.BAD_PARAM
                ("wrong profile for DIOP transport, tag: "
                 + tagged_profile.value.tag);
        }

        IIOPProfile result = new IIOPProfile(tagged_profile.value.profile_data);
        components.value = result.getComponents().asArray();
        return result;
    }
View Full Code Here

        final Profile result;

        if (token.length() == 0 ||
            "diop".equals(token))
        {
            result = new IIOPProfile(corbaloc);
        }
        else
        {
            result = null;
        }
View Full Code Here

        while (iter.hasNext ())
        {
            Profile p = iter.next ();
            if (p instanceof IIOPProfile)
            {
                IIOPProfile iiopProfile = (IIOPProfile) p;

                if (iiopProfile.version().minor == 0)
                {
                    logger.debug("patching GIOP 1.0 profile to contain " +
                                 "SSL information from the multiple components profile");
                    iiopProfile.addComponent(org.omg.SSLIOP.TAG_SSL_SEC_TRANS.value,
                                             ssl, SSLHelper.class);
                }
            }
        }
    }
View Full Code Here

    public int getPort()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getPort();
        }

        throw new RuntimeException("Cannot find server port for non-IIOP transport");
    }
View Full Code Here

    public String getAddress()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getHostname();
        }

        throw new RuntimeException("Cannot find server address for non-IIOP transport");
    }
View Full Code Here

      Vector row = new Vector ();

      row.addElement (last.id);
      row.addElement (last.kind);
      row.addElement (pior.getTypeId ());
      IIOPProfile p = (IIOPProfile)pior.getEffectiveProfile ();
      final IIOPAddress iiopAddress = (IIOPAddress)p.getAddress ();
      row.addElement (iiopAddress.getIP ());
      row.addElement (Integer.toString (iiopAddress.getPort ()));
      return row;
   }
View Full Code Here

                ("wrong profile for WIOP transport, tag: "
                 + tagged_profile.value.tag);
        }
        else
        {
            IIOPProfile result
                = new IIOPProfile (tagged_profile.value.profile_data);

            try
            {
                result.configure (configuration);
            }
            catch( ConfigurationException e )
            {
                throw new org.omg.CORBA.INTERNAL("ConfigurationException: " + e.toString());
            }


            try
            {
                result.configure (configuration);
            }
            catch( ConfigurationException e )
            {
                throw new org.omg.CORBA.INTERNAL("ConfigurationException: " + e.toString());
            }

            components.value = result.getComponents().asArray();


            return new WIOPProfile (result, this.tag);
        }
    }
View Full Code Here

            if (profile instanceof MIOPProfile)
            {
                if(responseExpected)
                {
                    IIOPProfile ip = ((MIOPProfile)profile).getGroupIIOPProfile();
                    if (ip == null)
                    {
                        throw new INV_OBJREF ("No Group IIOP Profile so unable to send a two-way request.");
                    }
                    objectKey = ip.get_object_key();
                    currentConnection = TransportType.IIOP;
                }
                else
                {
                    currentConnection = TransportType.MIOP;
View Full Code Here

TOP

Related Classes of org.jacorb.orb.iiop.IIOPProfile

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.