JavaTM 2 Platform
Standard Ed. 6

类 org.omg.CORBA.Request
的使用

使用 Request 的软件包
org.omg.CORBA 提供 OMG CORBA API 到 JavaTM 编程语言的映射,包括 ORB 类,如果已实现该类,则程序员可以使用此类作为全功能对象请求代理(Object Request Broker,ORB)。 
org.omg.CORBA.portable 提供可移植性层,即可以使一个供应商生成的代码运行在另一个供应商 ORB 上的 ORB API 集合。 
 

org.omg.CORBARequest 的使用
 

返回 Requestorg.omg.CORBA 中的方法
 Request LocalObject._create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
          抛出 org.omg.CORBA.NO_IMPLEMENT 异常,并带有消息 "This is a locally constrained object"。
 Request Object._create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
          创建一个 Request 实例,并使用给定上下文、方法名称、参数列表和用于该方法返回值的容器进行初始化。
 Request LocalObject._create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
          抛出 org.omg.CORBA.NO_IMPLEMENT 异常,并带有消息 "This is a locally constrained object"。
 Request Object._create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist)
          创建一个 Request 实例,并使用给定上下文、方法名称、参数列表、用于该方法返回值的容器、可能的异常列表以及需要被解析的上下文字符串所组成的列表进行初始化。
 Request LocalObject._request(String operation)
          抛出 org.omg.CORBA.NO_IMPLEMENT 异常,并带有消息 "This is a locally constrained object"。
 Request Object._request(String operation)
          创建一个在动态调用接口 (Dynamic Invocation Interface) 中使用的 Request 实例。
abstract  Request ORB.get_next_response()
          获取已接收到响应的下一个 Request 实例。
 

参数类型为 Requestorg.omg.CORBA 中的方法
abstract  void ORB.send_multiple_requests_deferred(Request[] req)
          异步发送多个动态 (DII) 请求。
abstract  void ORB.send_multiple_requests_oneway(Request[] req)
          异步发送多个动态 (DII) 请求,并且不期望任何响应。
 

org.omg.CORBA.portableRequest 的使用
 

返回 Requestorg.omg.CORBA.portable 中的方法
 Request ObjectImpl._create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
          创建一个 Request 对象,使其包含给定上下文、方法、参数列表,以及用于结果的容器。
 Request ObjectImpl._create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
          创建一个 Request 对象,使其包含给定的上下文、方法、参数列表、结果容器、异常,以及解析上下文字符串时将使用的属性名列表。
 Request ObjectImpl._request(String operation)
          创建一个 Request 对象,使其包含可用于动态调用接口 (Dynamic Invocation Interface) 的给定方法。
abstract  Request Delegate.create_request(Object obj, Context ctx, String operation, NVList arg_list, NamedValue result)
          创建在动态调用接口中使用的 Request 实例。
abstract  Request Delegate.create_request(Object obj, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist)
          创建在动态调用接口中使用的 Request 实例。
abstract  Request Delegate.request(Object obj, String operation)
          创建在动态调用接口 (Dynamic Invocation Interface) 中使用的 Request 实例。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only