JavaTM Platform
Standard Ed. 6

类 org.omg.PortableInterceptor.ForwardRequest
的使用

使用 ForwardRequest 的软件包
org.omg.PortableInterceptor 提供一个注册 ORB 钩子 (hook) 的机制,通过这些钩子 ORB 服务可以截取执行 ORB 的正常流。 
 

org.omg.PortableInterceptor 中 ForwardRequest 的使用
 

返回 ForwardRequest 的 org.omg.PortableInterceptor 中的方法
static ForwardRequest ForwardRequestHelper.extract(Any a)
           
static ForwardRequest ForwardRequestHelper.read(InputStream istream)
           
 

参数类型为 ForwardRequest 的 org.omg.PortableInterceptor 中的方法
static void ForwardRequestHelper.insert(Any a, ForwardRequest that)
           
static void ForwardRequestHelper.write(OutputStream ostream, ForwardRequest value)
           
 

抛出 ForwardRequest 的 org.omg.PortableInterceptor 中的方法
 void ClientRequestInterceptorOperations.receive_exception(ClientRequestInfo ri)
          指示 interceptor 发生异常。
 void ClientRequestInterceptorOperations.receive_other(ClientRequestInfo ri)
          允许 Interceptor 在请求引起了正常应答和异常之外的情况时查询可用信息。
 void ServerRequestInterceptorOperations.receive_request_service_contexts(ServerRequestInfo ri)
          允许 interceptor 处理服务上下文信息。
 void ServerRequestInterceptorOperations.receive_request(ServerRequestInfo ri)
          允许 Interceptor 在所有信息(包括操作参数)可用后查询信息。
 void ServerRequestInterceptorOperations.send_exception(ServerRequestInfo ri)
          允许 Interceptor 在向客户端抛出异常前查询异常信息并修改应答服务上下文。
 void ServerRequestInterceptorOperations.send_other(ServerRequestInfo ri)
          允许 Interceptor 在请求引起了正常应答和异常之外的情况时查询可用信息。
 void ClientRequestInterceptorOperations.send_request(ClientRequestInfo ri)
          允许 Interceptor 在请求被发送到服务器前查询请求信息并修改服务上下文。
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。