Java Code Examples for org.omg.PortableInterceptor.ForwardRequest

The following are top voted examples for showing how to use org.omg.PortableInterceptor.ForwardRequest. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 2
Project: openjdk-jdk10   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 3
Project: openjdk9   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 4
Project: lookaside_java-1.8.0-openjdk   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 5
Project: jdk8u_corba   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 6
Project: infobip-open-jdk-8   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 7
Project: openjdk-source-code-learn   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 8
Project: OLD-OpenJDK8   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 9
Project: openjdk-orb   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 10
Project: openjdk-icedtea7   File: InterceptorInvoker.java   Source Code and License 6 votes vote down vote up
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * 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.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
Example 11
Project: OpenJSharp   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 12
Project: openjdk-jdk10   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 13
Project: openjdk9   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 14
Project: lookaside_java-1.8.0-openjdk   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 15
Project: jdk8u_corba   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 16
Project: javify   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_request_service_contexts(ServerRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request_service_contexts(info);
    }
}
 
Example 17
Project: javify   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_request(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request(info);
    }
}
 
Example 18
Project: javify   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_exception(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_exception(info);
    }
}
 
Example 19
Project: javify   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_other(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_other(info);
    }
}
 
Example 20
Project: javify   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_exception(ClientRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_exception(info);
    }
}
 
Example 21
Project: javify   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_other(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_other(info);
    }
}
 
Example 22
Project: javify   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_request(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_request(info);
    }
}
 
Example 23
Project: javify   File: IorDelegate.java   Source Code and License 5 votes vote down vote up
/**
 * Show exception to interceptor.
 */
void showException(StreamBasedRequest request, BufferredCdrInput input)
  throws ForwardRequest
{
  input.mark(2048);
  request.request.m_exception_id = input.read_string();
  input.reset();

  if (request.request.m_interceptor != null)
    request.request.m_interceptor.receive_exception(request.request.m_info);
}
 
Example 24
Project: jvm-stm   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_request_service_contexts(ServerRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request_service_contexts(info);
    }
}
 
Example 25
Project: jvm-stm   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_request(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request(info);
    }
}
 
Example 26
Project: jvm-stm   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_exception(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_exception(info);
    }
}
 
Example 27
Project: jvm-stm   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_other(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_other(info);
    }
}
 
Example 28
Project: jvm-stm   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_exception(ClientRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_exception(info);
    }
}
 
Example 29
Project: jvm-stm   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_other(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_other(info);
    }
}
 
Example 30
Project: jvm-stm   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_request(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_request(info);
    }
}
 
Example 31
Project: jvm-stm   File: IorDelegate.java   Source Code and License 5 votes vote down vote up
/**
 * Show exception to interceptor.
 */
void showException(StreamBasedRequest request, BufferredCdrInput input)
  throws ForwardRequest
{
  input.mark(2048);
  request.request.m_exception_id = input.read_string();
  input.reset();

  if (request.request.m_interceptor != null)
    request.request.m_interceptor.receive_exception(request.request.m_info);
}
 
Example 32
Project: infobip-open-jdk-8   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 33
Project: openjdk-source-code-learn   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 34
Project: OLD-OpenJDK8   File: RequestInfoImpl.java   Source Code and License 5 votes vote down vote up
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    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;
}
 
Example 35
Project: JamVM-PH   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_request_service_contexts(ServerRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request_service_contexts(info);
    }
}
 
Example 36
Project: JamVM-PH   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_request(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request(info);
    }
}
 
Example 37
Project: JamVM-PH   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_exception(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_exception(info);
    }
}
 
Example 38
Project: JamVM-PH   File: ServerRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void send_other(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_other(info);
    }
}
 
Example 39
Project: JamVM-PH   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_exception(ClientRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_exception(info);
    }
}
 
Example 40
Project: JamVM-PH   File: ClientRequestInterceptors.java   Source Code and License 5 votes vote down vote up
/** @inheritDoc */
public void receive_other(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_other(info);
    }
}