JavaTM 2 Platform
Standard Ed. 6

类 org.omg.IOP.ServiceContext
的使用

使用 ServiceContext 的软件包
org.omg.IOP 此包包含在 OMG 文档 The Common Object Request Broker: Architecture and Specification http://cgi.omg.org/cgi-bin/doc?formal/99-10-07 的 13.6.小节中指定的 IOP 模块。 
org.omg.PortableInterceptor 提供一个注册 ORB 钩子 (hook) 的机制,通过这些钩子 ORB 服务可以截取执行 ORB 的正常流。 
 

org.omg.IOPServiceContext 的使用
 

声明为 ServiceContextorg.omg.IOP 中的字段
 ServiceContext ServiceContextHolder.value
           
 ServiceContext[] ServiceContextListHolder.value
           
 

返回 ServiceContextorg.omg.IOP 中的方法
static ServiceContext ServiceContextHelper.extract(Any a)
           
static ServiceContext[] ServiceContextListHelper.extract(Any a)
           
static ServiceContext ServiceContextHelper.read(InputStream istream)
           
static ServiceContext[] ServiceContextListHelper.read(InputStream istream)
           
 

参数类型为 ServiceContextorg.omg.IOP 中的方法
static void ServiceContextHelper.insert(Any a, ServiceContext that)
           
static void ServiceContextListHelper.insert(Any a, ServiceContext[] that)
           
static void ServiceContextHelper.write(OutputStream ostream, ServiceContext value)
           
static void ServiceContextListHelper.write(OutputStream ostream, ServiceContext[] value)
           
 

参数类型为 ServiceContextorg.omg.IOP 中的构造方法
ServiceContextHolder(ServiceContext initialValue)
           
ServiceContextListHolder(ServiceContext[] initialValue)
           
 

org.omg.PortableInterceptorServiceContext 的使用
 

返回 ServiceContextorg.omg.PortableInterceptor 中的方法
 ServiceContext RequestInfoOperations.get_reply_service_context(int id)
          返回具有给定 ID 的与应答关联的服务上下文复本。
 ServiceContext RequestInfoOperations.get_request_service_context(int id)
          返回具有给定 ID 的与请求关联的服务上下文复本。
 

参数类型为 ServiceContextorg.omg.PortableInterceptor 中的方法
 void ServerRequestInfoOperations.add_reply_service_context(ServiceContext service_context, boolean replace)
          允许 Interceptor 将服务上下文添加到请求。
 void ClientRequestInfoOperations.add_request_service_context(ServiceContext service_context, boolean replace)
          允许 Interceptor 将服务上下文添加到请求。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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