Package org.omg.ETF

Examples of org.omg.ETF.Profile


            is_rir = true;
            /* resolve initials references protocol */
            return null;
        }

        Profile result = null;
        if (orb == null
            && (colon == 0
                || addr.startsWith("iiop:")
                || addr.startsWith("ssliop:")))
        {
View Full Code Here


    public static String generateCorbaloc (org.omg.CORBA.ORB orb, org.omg.CORBA.Object ref)
    {
        ParsedIOR pior = new ParsedIOR((org.jacorb.orb.ORB)orb, orb.object_to_string (ref));

        Profile profile = pior.getEffectiveProfile();

        if (profile instanceof IIOPProfile)
        {
            return createCorbalocForIIOPProfile ((IIOPProfile)profile);
        }
        else if (profile instanceof MIOPProfile)
        {
            return createCorbalocForMIOPProfile ((MIOPProfile)profile);
        }
        else
        {
            throw new IllegalArgumentException ("Profile type not suported: tag number=" +
                                                profile.tag ());
        }
    }
View Full Code Here

        String result = null;
        String object_key = null;
        Iterator<Profile> iterator;
        for (iterator = pior.getProfiles().iterator(); iterator.hasNext();)
        {
            Profile profile = iterator.next();

            if (profile instanceof IIOPProfile)
            {
                String s = createCorbalocForIIOPProfile ((IIOPProfile)profile, true);
                if (result != null)
                {
                    result += "," + s;
                }
                else
                {
                    result = "corbaloc:" + s;
                    object_key = parseKey (profile.get_object_key ());
                }

            }
        }
        if (result != null)
View Full Code Here

    public Profile decode_corbaloc (String corbaloc)
    {
        final int colon = corbaloc.indexOf (':');
        final String token = corbaloc.substring (0,colon).toLowerCase();
        final Profile result;

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

        }

        Iterator<Profile> iter = profiles.iterator ();
        while (iter.hasNext ())
        {
            Profile p = iter.next ();
            if (p instanceof IIOPProfile)
            {
                IIOPProfile iiopProfile = (IIOPProfile) p;

                if (iiopProfile.version().minor == 0)
View Full Code Here

    // xxx reject connection if 1.1 and requested UTF8 for wchar


    private ClientConnection createClientConnection( int majorVersion, int minorVersion, ParsedIOR ior )
    {
        Profile profile = createMockProfile( majorVersion, minorVersion );
        ClientGIOPConnection giopConnection = new ClientGIOPConnection( null, null, null, null, null );
        ClientConnection connection = new ClientConnection( giopConnection, orb, null, profile, false );
        try
        {
            giopConnection.configure(getORB().getConfiguration());
View Full Code Here


    private Profile createMockProfile( int majorVersion, int minorVersion )
    {
        MockControl profileControl = MockControl.createControl( Profile.class );
        Profile profile = (Profile) profileControl.getMock();
        profile.version();
        profileControl.setReturnValue( new Version( (byte) majorVersion, (byte) minorVersion ) );
        profile.get_object_key();
        profileControl.setReturnValue( new byte[] {} );
        profileControl.replay();
        return profile;
    }
View Full Code Here

        else
        {
            this.target = orb._getDelegate(piorOriginal);
        }

        Profile profile = pior.getEffectiveProfile();

        // If this ParsedIOR is using a profile that extends ProfileBase e.g. IIOPProfile
        // and WIOP (within the regression suite) then grab the effective profile and the
        // possibly null effective_components.
        if (profile instanceof ProfileBase)
View Full Code Here

        else
        {
            this.target = orb._getDelegate (piorOriginal);
        }

        Profile profile = pior.getEffectiveProfile();

        // If this ParsedIOR is using a profile that extends ProfileBase e.g. IIOPProfile
        // and WIOP (within the regression suite) then grab the effective profile and the
        // possibly null effective_components.
        if (profile instanceof ProfileBase)
View Full Code Here

    public int get_number_of_profiles(int tag)
    {
       int retVal = 0;
       for (int i=0; i < _profiles.size(); i++)
       {
           Profile p = _profiles.get(i);
           if ( p.tag() == tag )
           {
              retVal++;
           }
       }
       return retVal;
View Full Code Here

TOP

Related Classes of org.omg.ETF.Profile

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.