Examples of IIOPProfile


Examples of org.jacorb.orb.iiop.IIOPProfile

    public int getSSLPort()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return profile.getSSLPort();
        }
        else
        {
            throw new RuntimeException
                ("Non-IIOP transport does not have an SSL port");
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

    public String getAddress()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getHostname();
        }
        else
        {
            throw new RuntimeException
                ("Cannot find server address for non-IIOP transport");
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

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

Examples of org.jacorb.orb.iiop.IIOPProfile

            if (logger.isDebugEnabled())
            {
                logger.debug("Client conn. added to target " + addr );
            }

            conn_mg.addConnection( connection, new IIOPProfile (addr, null) );
        }
    }
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

        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

Examples of org.jacorb.orb.iiop.IIOPProfile

        try
        {
            address = new IIOPAddress (host, port);
            address.configure(configuration);

            IIOPProfile iiopProfile = new IIOPProfile(address, object_key);
            iiopProfile.configure(configuration);

            connection = cm.getConnection(iiopProfile);
        }
        catch(ConfigurationException e)
        {
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

            IIOPAddress addr = new IIOPAddress (_poa.host,(short)_poa.port);
            org.omg.IOP.IOR _ior = null;
            try
            {
                addr.configure(configuration);
                IIOPProfile p = new IIOPProfile (addr,object_key,giop_minor);
                p.configure(configuration);
                _ior = ParsedIOR.createObjectIOR(p);
            }
            catch(ConfigurationException e)
            {
                logger.error("Error while configuring address/profile", e);
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

            IIOPAddress addr = new IIOPAddress (_poa.host,(short)_poa.port);
            org.omg.IOP.IOR _ior = null;
            try
            {
                addr.configure(configuration);
                IIOPProfile p = new IIOPProfile (addr,object_key,giop_minor);
                p.configure(configuration);
                _ior = ParsedIOR.createObjectIOR(p);
            }
            catch(ConfigurationException e)
            {
                logger.error("Error while configuring address/profile", e);
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

        try
        {
            address = new IIOPAddress (host, port);
            address.configure(configuration);

            IIOPProfile iiopProfile = new IIOPProfile(address, object_key);
            iiopProfile.configure(configuration);

            connection = cm.getConnection(iiopProfile);
        }
        catch(ConfigurationException e)
        {
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPProfile

                }
            }
        }

        // patch the primary address if SSL (or TLS) is required by the target.
        IIOPProfile iiopProfile = findIIOPProfile(profiles);
        if (iiopProfile != null)
        {
            TaggedComponentList components =
                (TaggedComponentList)componentMap.get(ObjectUtil.newInteger(TAG_INTERNET_IOP.value));
            if(this.isSSLRequiredInComponentList(components))
            {
                iiopProfile.patchPrimaryAddress(new IIOPAddress(null, 0));
            }
        }

        // add GIOP 1.0 profile if necessary
        if ( (iiopProfile != null)
             && ( this.giopMinorVersion == 0 || this.giopAdd_1_0_Profiles ))
        {
            Profile profile_1_0 = iiopProfile.to_GIOP_1_0();
            profiles.add(profile_1_0);

            // shuffle all components over into the multiple components profile
            TaggedComponentList iiopComponents =
                (TaggedComponentList)componentMap.get(ObjectUtil.newInteger(TAG_INTERNET_IOP.value));

            multipleComponents.addAll(iiopProfile.getComponents());
            multipleComponents.addAll(iiopComponents);

            // if we only want GIOP 1.0, remove the other profile
            if (giopMinorVersion == 0)
            {
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.