Examples of extract_string()


Examples of org.omg.CORBA.Any.extract_string()

            // Get the slot data as a string
            String s = null;
            String slotDataAsStr = "<no_slot_data>";
            if( slotDataAsAny.type().kind().value() != org.omg.CORBA.TCKind._tk_null
                && null != (s = slotDataAsAny.extract_string())) {
               slotDataAsStr = s;
            }

            slotDataAsStr += ":" + methodName;
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

        {
            Current current = (Current) orb.resolve_initial_references( "PICurrent" );

            Any any = current.get_slot( MyInitializer.slot_id );

            String s = any.extract_string();

            logger.debug ("TestObjectImpl.foo, extracted from PICurrent: >>" + s + "<<");

            String expectedPiFlow = "JacOrbRocks:receive_request_service_contexts:preinvoke:receive_request:foo";
            if (! expectedPiFlow.equals(s))
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

            Current current = (Current) orb.resolve_initial_references( "PICurrent" );

            Any any = current.get_slot( MyInitializer.slot_id );

            String s = any.extract_string();

            logger.debug ("TestObjectImpl.bar, extracted from PICurrent: >>" + s + "<<");

            String expectedPiFlow = "JacOrbRocks:receive_request_service_contexts:preinvoke:receive_request:foo:receive_request_service_contexts:preinvoke:receive_request:bar";
            if (! expectedPiFlow.equals(s))
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

        {
            Any slotDataAsAny = codec.decode( ctx.context_data );

            // Get the slot data as a string
            String slotDataAsStr;
            if (null == (slotDataAsStr = slotDataAsAny.extract_string())) {
               logger.debug("slotDataAsStr=<null>");
            } else {
               logger.debug("slotDataAsStr=" + slotDataAsStr);
            }
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

            // Get the slot data as a string
            String s = null;
            String slotDataAsStr = "<no_slot_data>";
            if( slotDataAsAny.type().kind().value() != org.omg.CORBA.TCKind._tk_null
                && null != (s = slotDataAsAny.extract_string())) {
               slotDataAsStr = s;
            }

            slotDataAsStr += ":" + methodName;
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

        byte[] context_data = context.context_data;
        Any any;
        try
        {
            any = codec.decode(context_data);
            TestUtils.getLogger().debug(any.extract_string());
        }
        catch (FormatMismatch e)
        {
            String message = "Unexpected error of FormatMismatch";
            throw new INTERNAL(message);
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

        _any.insert_long(10);
        Property p = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertyHelper.insert(_testData, p);
        Any a = objectUnderTest_.evaluateIdentifier(_testData, "name");
        assertEquals("number", a.extract_string());
    }


    @Test
    public void testEvaluateNamedValueList() throws Exception {
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

            org.omg.CORBA.NVList params = orb.create_list(0);
            Any stringAny = orb.create_any();
            stringAny.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
            params.add_value( "", stringAny, org.omg.CORBA.ARG_IN.value );
            request.arguments( params );
            delegate._notify( stringAny.extract_string() );
            Any s = orb.create_any();
            s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_void ));
            request.set_result( s );
        }
        else if( op.equals("_non_existent") )
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

                (org.omg.PortableInterceptor.Current)
            orb.resolve_initial_references( "PICurrent" );

            Any any = current.get_slot (Initializer.slot_id);

            String result = any.extract_string();

            if (! result.equals ("This is a test AAA"))
            {
                throw new Exception ("Did not receive correct message : got <"
                                     + result + "> and expected <This is a test AAA>");
View Full Code Here

Examples of org.omg.CORBA.Any.extract_string()

            throw new INTERNAL("Information from send_request is not there!");
        }
        else
        {
            TestUtils.getLogger().debug("receive_exception working as expected!");
            TestUtils.getLogger().debug("Info: " + any.extract_string());
        }
    }

    @Override
    public void receive_other(ClientRequestInfo ri) throws ForwardRequest
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.