Package org.jacorb.orb.iiop

Examples of org.jacorb.orb.iiop.IIOPProfile


    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

        out.println("TAG_INTERNET_IOP Profiles:");
        for( int i = 0; i < profiles.size(); i++ )
        {
            out.println("\tProfile Id:\t\t" + i);

            IIOPProfile profile = (IIOPProfile)profiles.get(i);
            out.println("\tIIOP Version:\t\t" +
                               (int)profile.version().major + "." +
                               (int)profile.version().minor);

            out.println("\tHost:\t\t\t" +
                               ((IIOPAddress)profile.getAddress()).getOriginalHost());
            int port = ((IIOPAddress)profile.getAddress()).getPort();
            if( port < 0 )
            {
                port += 65536;
            }

            out.println("\tPort:\t\t\t" + port );
            out.println("\tObject key (URL):\t" + CorbaLoc.parseKey( profile.get_object_key()));
            out.print  ("\tObject key (hex):\t0x" );
            dumpHex( profile.get_object_key(), out);
            out.println();

            if ( profile.version().minor >= ( char ) 1 )
            {
                if( profile.getComponents().size() > 0 )
                {
                    out.println("\t-- Found " +
                                       profile.getComponents().size() +
                                       " Tagged Components--" );
                }

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

        TaggedComponentList multiple_components = pior.getMultipleComponents();
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

        System.out.println("TAG_INTERNET_IOP Profiles:");
        for( int i = 0; i < profiles.size(); i++ )
        {
            System.out.print("\tProfile Id:  ");

            IIOPProfile p = (IIOPProfile)profiles.get(i);
            System.out.println("\tIIOP Version :  " +
                               (int)p.version().major + "." +
                               (int)p.version().minor);

            System.out.println("\tHost\t:\t" +
                               ((IIOPAddress)p.getAddress()).getOriginalHost());
            int port = ((IIOPAddress)p.getAddress()).getPort();
            if( port < 0 )
                port += 65536;

            System.out.println("\tPort\t:\t" + port );
            try
            {
                System.out.println("\tObject key (URL):      " +
                                   CorbaLoc.parseKey( pior.get_object_key()));
            }
            catch( Exception e )
            {
                // ignore, object key not in url format
            }
            System.out.print("\tObject key (hex):    0x" );
            dumpHex( pior.get_object_key() );
            System.out.println();

            if ( p.version().minor >= ( char ) 1 )
            {
                if( p.getComponents().size() > 0 )
                    System.out.println("\t-- Found " +
                                       p.getComponents().size() +
                                       " Tagged Components--" );

                printTaggedComponents( p.getComponents().asArray() );
            }
            System.out.print("\n");
        }

        TaggedComponentList multiple_components = pior.getMultipleComponents();
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

        int colon = corbaloc.indexOf (':');
        String token = corbaloc.substring (0,colon).toLowerCase();
        if (token.length() == 0 ||
            token.equals ("diop"))
        {
            return new IIOPProfile(corbaloc);
        }
       
        return null;
    }
View Full Code Here

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

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

        ClientConnection clientConnection = connections.get( profile );

        if (clientConnection == null && profile instanceof IIOPProfile)
        {
            IIOPProfile iiopProfile = (IIOPProfile) profile;

            if (iiopProfile.getSSL() != null)
            {
                final IIOPProfile sslProfile = iiopProfile.toNonSSL();

                clientConnection = connections.get(sslProfile);
            }
        }
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.