Package org.omg.PortableInterceptor

Examples of org.omg.PortableInterceptor.Current


    {
        boolean result = false;

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

            Any anyName = current.get_slot( SInitializer.slotID );

            result = anyName.extract_boolean();
        }
        catch (InvalidSlot e)
        {
View Full Code Here


    /**
     * This method returns a thread specific PICurrent.
     */
    public Current getCurrent()
    {
        Current value = null;

        if (localPICurrent.get () != null)
        {
           value = localPICurrent.get ();
        }
View Full Code Here

*/
public class ORBInitializer extends AbstractORBInitializer
{
    protected void doPreInit(ORBInitInfo info) throws Exception
    {
        Current current = CurrentHelper.narrow(info.resolve_initial_references("PICurrent"));
        current.set_slot(10, ORB.init().create_any());
    }
View Full Code Here

    {
        boolean result;

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

            Any anyName = current.get_slot( SInitializer.slotID );

            result = anyName.extract_boolean();
        }
        catch (InvalidSlot e)
        {
View Full Code Here

        TestUtils.getLogger().debug ("\ntestCompleteCallWithScs");

        init ("sendMessage");
        try
        {
            Current curr = (Current) setup.getClientOrb().resolve_initial_references ("PICurrent");
            curr.set_slot (slotID, any );
        }
        catch (InvalidName in)
        {
            fail ("Got InvalidName exception");
        }
View Full Code Here

    }

    @Override
    public void pass_in_long(int x)
    {
        Current current;
        try
        {
            current = CurrentHelper.narrow(orb.resolve_initial_references("PICurrent"));

            org.omg.CORBA.Any anyName = current.get_slot(org.jacorb.security.sas.SASInitializer.sasPrincipalNamePIC);

            if (anyName.type().kind().value() == org.omg.CORBA.TCKind._tk_null)
            {
                System.out.println("Null Name");
                fail ("Got null name");
View Full Code Here

    }

    @Override
    public void send_request(ClientRequestInfo ri) throws ForwardRequest
    {
        Current current = getPICurrent(orb);

        Any any = orb.create_any();
        any.insert_string("Some Information to other interception point");
        try
        {
            current.set_slot(slot, any);
        }
        catch (InvalidSlot e)
        {
            throw new INTERNAL("Invalid Slot access");
        }
View Full Code Here

    }

    @Override
    public void receive_exception(ClientRequestInfo ri) throws ForwardRequest
    {
        Current current = getPICurrent(orb);
        Any any;
        try
        {
            any = current.get_slot(slot);
        }
        catch (InvalidSlot e)
        {
            throw new INTERNAL("Invalid Slot access");
        }
View Full Code Here

    }

    @Override
    public void receive_reply(ClientRequestInfo ri)
    {
        Current current = getPICurrent(orb);
        Any any;
        try
        {
            any = current.get_slot(slot);
        }
        catch (InvalidSlot e)
        {
            throw new INTERNAL("Invalid Slot access");
        }
View Full Code Here

    {
        String result = "";

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

            Any anyName = current.get_slot( IPInitializer.slotID );

            result = anyName.extract_string();
         }
         catch (InvalidSlot e)
         {
View Full Code Here

TOP

Related Classes of org.omg.PortableInterceptor.Current

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.