Java Code Examples for org.omg.CORBA.Context

The following are top voted examples for showing how to use org.omg.CORBA.Context. 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
                             )
{
  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);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
Example 2
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 3
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
)
{
  gnuRequest request = getRequestInstance(target);

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

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

  return request;
}
 
Example 4
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 5
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
                             )
{
  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);
  if (returns != null)
    g.set_result(returns);
  return g;    
}
 
Example 6
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 7
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
)
{
  gnuRequest request = getRequestInstance(target);

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

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

  return request;
}
 
Example 8
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 9
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
                             )
{
  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);
  if (returns != null)
    g.set_result(returns);
  return g;    
}
 
Example 10
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 11
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
)
{
  gnuRequest request = getRequestInstance(target);

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

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

  return request;
}
 
Example 12
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 13
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
                             )
{
  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);
  if (returns != null)
    g.set_result(returns);
  return g;
}
 
Example 14
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 15
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
)
{
  gnuRequest request = getRequestInstance(target);

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

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

  return request;
}
 
Example 16
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 17
Project: TIDorbJ   File: ContextImpl.java   View source code 6 votes vote down vote up
public org.omg.CORBA.Context create_child(String child_context_name)
{
    if (child_context_name == null) {

        throw new BAD_PARAM("Null string reference", 0,
                            CompletionStatus.COMPLETED_NO);
    }

    ContextImpl child = new ContextImpl(m_orb, child_context_name, this);

    if (m_childs == null) {
        m_childs = new java.util.Vector();
    }
    m_childs.addElement(child);
    return child;
}
 
Example 18
Project: OpenJSharp   File: ServerRequestImpl.java   View source code 5 votes vote down vote up
public Context ctx()
{
    if ( !_paramsCalled || _resultSet || _exceptionSet )
        throw _wrapper.contextCalledOutOfOrder() ;

    throw _wrapper.contextNotImplemented() ;
}
 
Example 19
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)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
Example 20
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 21
Project: openjdk-jdk10   File: ServerRequestImpl.java   View source code 5 votes vote down vote up
public Context ctx()
{
    if ( !_paramsCalled || _resultSet || _exceptionSet )
        throw _wrapper.contextCalledOutOfOrder() ;

    throw _wrapper.contextNotImplemented() ;
}
 
Example 22
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)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
Example 23
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 24
Project: openjdk9   File: ServerRequestImpl.java   View source code 5 votes vote down vote up
public Context ctx()
{
    if ( !_paramsCalled || _resultSet || _exceptionSet )
        throw _wrapper.contextCalledOutOfOrder() ;

    throw _wrapper.contextNotImplemented() ;
}
 
Example 25
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)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
Example 26
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 27
Project: lookaside_java-1.8.0-openjdk   File: ServerRequestImpl.java   View source code 5 votes vote down vote up
public Context ctx()
{
    if ( !_paramsCalled || _resultSet || _exceptionSet )
        throw _wrapper.contextCalledOutOfOrder() ;

    throw _wrapper.contextNotImplemented() ;
}
 
Example 28
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)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
Example 29
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 30
Project: jdk8u_corba   File: ServerRequestImpl.java   View source code 5 votes vote down vote up
public Context ctx()
{
    if ( !_paramsCalled || _resultSet || _exceptionSet )
        throw _wrapper.contextCalledOutOfOrder() ;

    throw _wrapper.contextNotImplemented() ;
}
 
Example 31
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)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list,
                           result, null, null);
}
 
Example 32
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 33
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
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
Example 34
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 35
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 36
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)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  return rq;
}
 
Example 37
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
                              )
{
  throw new NO_IMPLEMENT(INAPPROPRIATE);
}
 
Example 38
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 39
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 40
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)
{
  operation = method;

  LocalRequest rq = new LocalRequest(object, poa, Id);
  rq.setOperation(method);
  rq.set_args(parameters);
  rq.set_result(returns);
  return rq;
}