Examples of ForwardRequest


Examples of org.omg.PortableInterceptor.ForwardRequest

    // Forward on the attempt to get the field.
    // The forwarding target is connected to another ORB without this
    // interceptor.
    if (info.operation().equals("_get_theField"))
      {
        throw new ForwardRequest(testInterceptors.fior);
      }
  }
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

        if( this.forwardRequest == null ) {
            if( this.forwardRequestIOR != null ) {
                // Convert the internal IOR to a forward request exception
                // by creating an object reference.
                org.omg.CORBA.Object obj = iorToObject(this.forwardRequestIOR);
                this.forwardRequest = new ForwardRequest( obj );
            }
        }

        return this.forwardRequest;
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

     * information in the passed-in info object.
     */
    private void updateClientRequestDispatcherForward(
        ClientRequestInfoImpl info )
    {
        ForwardRequest forwardRequest = info.getForwardRequestException();

        // ForwardRequest may be null if the forwarded IOR is set internal
        // to the ClientRequestDispatcher rather than explicitly through Portable
        // Interceptors.  In this case, we need not update the client
        // delegate ForwardRequest object.
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

     * information in the passed-in info object.
     */
    private void updateClientRequestDispatcherForward(
        ClientRequestInfoImpl info )
    {
        ForwardRequest forwardRequest = info.getForwardRequestException();

        // ForwardRequest may be null if the forwarded IOR is set internal
        // to the ClientRequestDispatcher rather than explicitly through Portable
        // Interceptors.  In this case, we need not update the client
        // delegate ForwardRequest object.
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

        if( this.forwardRequest == null ) {
            if( this.forwardRequestIOR != null ) {
                // Convert the internal IOR to a forward request exception
                // by creating an object reference.
                org.omg.CORBA.Object obj = iorToObject(this.forwardRequestIOR);
                this.forwardRequest = new ForwardRequest( obj );
            }
        }

        return this.forwardRequest;
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

                Policy[] wiopP = new Policy[]
                    { rtorb.create_client_protocol_policy(new Protocol[] { wiop }) };

                ri.effective_target()._set_policy_override(wiopP, SetOverrideType.SET_OVERRIDE);

                throw new ForwardRequest (ri.effective_target());
            }
            catch (InvalidName e)
            {
                once = true;
                throw new INTERNAL ("Caught invalid name " + e);
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

        if( this.forwardRequest == null ) {
            if( this.forwardRequestIOR != null ) {
                // Convert the internal IOR to a forward request exception
                // by creating an object reference.
                org.omg.CORBA.Object obj = iorToObject(this.forwardRequestIOR);
                this.forwardRequest = new ForwardRequest( obj );
            }
        }

        return this.forwardRequest;
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

                Current current = getPICurrent(orb);
                Any flag = orb.create_any();
                flag.insert_boolean(true);
                current.set_slot(this.slot, flag);
                TestUtils.getLogger().debug("doing ForwardRequest: " + ri.operation());
                throw new ForwardRequest(ri.target());
            }
        }
        catch (InvalidSlot e)
        {
            throw new RuntimeException("Falha inesperada ao salvar no slot: " + e);
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

            org.omg.CORBA.Object rebindTo = target._set_policy_override (policies, SetOverrideType.SET_OVERRIDE);

            protocols = null;

            throw new ForwardRequest ("Switch to other protocol", rebindTo);
        }
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ForwardRequest

       counter++;
       if (counter == 3)
       {
          // second invocation redirect to original target (obj 1)
          org.omg.CORBA.Object CORBA_OBJ = ri.target();
          throw new ForwardRequest(CORBA_OBJ);
       }
       else if (counter == 7)
       {
          org.omg.CORBA.Object CORBA_OBJ = ri.target();
          throw new ForwardRequest(CORBA_OBJ);
       }
       else if (counter == 11)
       {
          throw new ForwardRequest(RTJ634Test.server2);
       }
    }
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.