JavaTM 2 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 2 Platform
Standard Ed. 6

提交錯誤或意見

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