Java Code Examples for org.omg.CORBA.ContextList

The following are top voted examples for showing how to use org.omg.CORBA.ContextList. 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: javify   File: SimpleDelegate.java   View source code 6 votes vote down vote up
/**
 * Create the request for the local call.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
                              String operation, NVList parameters,
                              NamedValue returns, ExceptionList exceptions,
                              ContextList ctx_list
                             )
{
  if (orb instanceof OrbFunctional)
    {
      ((OrbFunctional) orb).ensureRunning();
    }
  gnuRequest g = new gnuRequest();
  g.setORB(orb);
  g.setOperation(operation);
  g.setIor(ior);
  g.m_target = target;
  g.ctx(context);
  g.set_args(parameters);
  g.set_exceptions(exceptions);
  g.set_context_list(ctx_list);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
Example 2
Project: javify   File: IorDelegate.java   View source code 6 votes vote down vote up
/**
 * Creates the request to invoke the method on this object.
 *
 * @param target the object, for that the operation must be invoked.
 * @param context context (null allowed)
 * @param operation the method name
 * @param parameters the method parameters
 * @param returns the return value holder
 *
 * @return the created request.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String operation, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list
)
{
  gnuRequest request = getRequestInstance(target);

  request.setIor(ior);
  request.set_target(target);

  request.setOperation(operation);
  request.set_args(parameters);
  request.m_context = context;
  request.set_result(returns);
  request.set_exceptions(exceptions);
  request.set_context_list(ctx_list);
  request.setORB(orb);

  return request;
}
 
Example 3
Project: jvm-stm   File: SimpleDelegate.java   View source code 6 votes vote down vote up
/**
 * Create the request for the local call.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
                              String operation, NVList parameters,
                              NamedValue returns, ExceptionList exceptions,
                              ContextList ctx_list
                             )
{
  if (orb instanceof OrbFunctional)
    {
      ((OrbFunctional) orb).ensureRunning();
    }
  gnuRequest g = new gnuRequest();
  g.setORB(orb);
  g.setOperation(operation);
  g.setIor(ior);
  g.m_target = target;
  g.ctx(context);
  g.set_args(parameters);
  g.set_exceptions(exceptions);
  g.set_context_list(ctx_list);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
Example 4
Project: jvm-stm   File: IorDelegate.java   View source code 6 votes vote down vote up
/**
 * Creates the request to invoke the method on this object.
 *
 * @param target the object, for that the operation must be invoked.
 * @param context context (null allowed)
 * @param operation the method name
 * @param parameters the method parameters
 * @param returns the return value holder
 *
 * @return the created request.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String operation, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list
)
{
  gnuRequest request = getRequestInstance(target);

  request.setIor(ior);
  request.set_target(target);

  request.setOperation(operation);
  request.set_args(parameters);
  request.m_context = context;
  request.set_result(returns);
  request.set_exceptions(exceptions);
  request.set_context_list(ctx_list);
  request.setORB(orb);

  return request;
}
 
Example 5
Project: JamVM-PH   File: SimpleDelegate.java   View source code 6 votes vote down vote up
/**
 * Create the request for the local call.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
                              String operation, NVList parameters,
                              NamedValue returns, ExceptionList exceptions,
                              ContextList ctx_list
                             )
{
  if (orb instanceof OrbFunctional)
    {
      ((OrbFunctional) orb).ensureRunning();
    }
  gnuRequest g = new gnuRequest();
  g.setORB(orb);
  g.setOperation(operation);
  g.setIor(ior);
  g.m_target = target;
  g.ctx(context);
  g.set_args(parameters);
  g.set_exceptions(exceptions);
  g.set_context_list(ctx_list);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
Example 6
Project: JamVM-PH   File: IorDelegate.java   View source code 6 votes vote down vote up
/**
 * Creates the request to invoke the method on this object.
 *
 * @param target the object, for that the operation must be invoked.
 * @param context context (null allowed)
 * @param operation the method name
 * @param parameters the method parameters
 * @param returns the return value holder
 *
 * @return the created request.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String operation, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list
)
{
  gnuRequest request = getRequestInstance(target);

  request.setIor(ior);
  request.set_target(target);

  request.setOperation(operation);
  request.set_args(parameters);
  request.m_context = context;
  request.set_result(returns);
  request.set_exceptions(exceptions);
  request.set_context_list(ctx_list);
  request.setORB(orb);

  return request;
}
 
Example 7
Project: classpath   File: SimpleDelegate.java   View source code 6 votes vote down vote up
/**
 * Create the request for the local call.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
                              String operation, NVList parameters,
                              NamedValue returns, ExceptionList exceptions,
                              ContextList ctx_list
                             )
{
  if (orb instanceof OrbFunctional)
    {
      ((OrbFunctional) orb).ensureRunning();
    }
  gnuRequest g = new gnuRequest();
  g.setORB(orb);
  g.setOperation(operation);
  g.setIor(ior);
  g.m_target = target;
  g.ctx(context);
  g.set_args(parameters);
  g.set_exceptions(exceptions);
  g.set_context_list(ctx_list);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
Example 8
Project: classpath   File: IorDelegate.java   View source code 6 votes vote down vote up
/**
 * Creates the request to invoke the method on this object.
 *
 * @param target the object, for that the operation must be invoked.
 * @param context context (null allowed)
 * @param operation the method name
 * @param parameters the method parameters
 * @param returns the return value holder
 *
 * @return the created request.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String operation, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list
)
{
  gnuRequest request = getRequestInstance(target);

  request.setIor(ior);
  request.set_target(target);

  request.setOperation(operation);
  request.set_args(parameters);
  request.m_context = context;
  request.set_result(returns);
  request.set_exceptions(exceptions);
  request.set_context_list(ctx_list);
  request.setORB(orb);

  return request;
}
 
Example 9
Project: OpenJSharp   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 10
Project: OpenJSharp   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 11
Project: openjdk-jdk10   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 12
Project: openjdk-jdk10   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 13
Project: openjdk9   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 14
Project: openjdk9   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 15
Project: lookaside_java-1.8.0-openjdk   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 16
Project: lookaside_java-1.8.0-openjdk   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 17
Project: jdk8u_corba   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 18
Project: jdk8u_corba   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 19
Project: javify   File: LocalObject.java   View source code 5 votes vote down vote up
/**
 * This method is not appropriate for the local objects and just
 * throws an exception.
 *
 * @throws NO_IMPLEMENT, always.
 */
public Request _create_request(Context context, String operation,
                               NVList parameters, NamedValue returns,
                               ExceptionList exceptions, ContextList ctx_list
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
Example 20
Project: javify   File: LocalDelegate.java   View source code 5 votes vote down vote up
/**
 * Create request for using with DII.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String method, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  rq.set_exceptions(exceptions);
  rq.set_context_list(ctx_list);
  return rq;
}
 
Example 21
Project: jvm-stm   File: LocalObject.java   View source code 5 votes vote down vote up
/**
 * This method is not appropriate for the local objects and just
 * throws an exception.
 *
 * @throws NO_IMPLEMENT, always.
 */
public Request _create_request(Context context, String operation,
                               NVList parameters, NamedValue returns,
                               ExceptionList exceptions, ContextList ctx_list
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
Example 22
Project: jvm-stm   File: LocalDelegate.java   View source code 5 votes vote down vote up
/**
 * Create request for using with DII.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String method, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  rq.set_exceptions(exceptions);
  rq.set_context_list(ctx_list);
  return rq;
}
 
Example 23
Project: infobip-open-jdk-8   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 24
Project: infobip-open-jdk-8   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 25
Project: openjdk-source-code-learn   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 26
Project: openjdk-source-code-learn   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 27
Project: OLD-OpenJDK8   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 28
Project: OLD-OpenJDK8   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 29
Project: JamVM-PH   File: LocalObject.java   View source code 5 votes vote down vote up
/**
 * This method is not appropriate for the local objects and just
 * throws an exception.
 *
 * @throws NO_IMPLEMENT, always.
 */
public Request _create_request(Context context, String operation,
                               NVList parameters, NamedValue returns,
                               ExceptionList exceptions, ContextList ctx_list
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
Example 30
Project: JamVM-PH   File: LocalDelegate.java   View source code 5 votes vote down vote up
/**
 * Create request for using with DII.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String method, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  rq.set_exceptions(exceptions);
  rq.set_context_list(ctx_list);
  return rq;
}
 
Example 31
Project: openjdk-orb   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 32
Project: openjdk-orb   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 33
Project: classpath   File: LocalObject.java   View source code 5 votes vote down vote up
/**
 * This method is not appropriate for the local objects and just
 * throws an exception.
 *
 * @throws NO_IMPLEMENT, always.
 */
public Request _create_request(Context context, String operation,
                               NVList parameters, NamedValue returns,
                               ExceptionList exceptions, ContextList ctx_list
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
Example 34
Project: classpath   File: LocalDelegate.java   View source code 5 votes vote down vote up
/**
 * Create request for using with DII.
 */
public Request create_request(org.omg.CORBA.Object target, Context context,
  String method, NVList parameters, NamedValue returns,
  ExceptionList exceptions, ContextList ctx_list)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  rq.set_exceptions(exceptions);
  rq.set_context_list(ctx_list);
  return rq;
}
 
Example 35
Project: openjdk-icedtea7   File: CorbaClientDelegateImpl.java   View source code 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example 36
Project: openjdk-icedtea7   File: ClientRequestInfoImpl.java   View source code 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example 37
Project: OpenJSharp   File: StubWrapper.java   View source code 4 votes vote down vote up
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result, ExceptionList exclist, ContextList ctxlist)
{
    return object._create_request( ctx, operation, arg_list, result,
        exclist, ctxlist ) ;
}
 
Example 38
Project: OpenJSharp   File: RequestImpl.java   View source code 4 votes vote down vote up
public RequestImpl (ORB orb,
                    org.omg.CORBA.Object targetObject,
                    Context ctx,
                    String operationName,
                    NVList argumentList,
                    NamedValue resultContainer,
                    ExceptionList exceptionList,
                    ContextList ctxList)
{

    // initialize the orb
    _orb    = orb;
    _wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.OA_INVOCATION ) ;

    // initialize target, context and operation name
    _target     = targetObject;
    _ctx    = ctx;
    _opName = operationName;

    // initialize argument list if not passed in
    if (argumentList == null)
        _arguments = new NVListImpl(_orb);
    else
        _arguments = argumentList;

    // set result container.
    _result = resultContainer;

    // initialize exception list if not passed in
    if (exceptionList == null)
        _exceptions = new ExceptionListImpl();
    else
        _exceptions = exceptionList;

    // initialize context list if not passed in
    if (ctxList == null)
        _ctxList = new ContextListImpl(_orb);
    else
        _ctxList = ctxList;

    // initialize environment
    _env    = new EnvironmentImpl();

}
 
Example 39
Project: OpenJSharp   File: RequestImpl.java   View source code 4 votes vote down vote up
public ContextList contexts()
{
    return _ctxList;
}
 
Example 40
Project: OpenJSharp   File: ORBImpl.java   View source code 4 votes vote down vote up
/**
 * Create a ContextList
 *
 * @result          ContextList created
 */
public synchronized org.omg.CORBA.ContextList create_context_list()
{
    checkShutdownState();
    return new ContextListImpl(this);
}