11.15.2 ServerRequestInterceptorのメソッド
-
org.omg.CORBA.Object target,
java.lang.String operation,
com.inprise.vbroker.IOP.ServiceContext[ ] service_contexts,
com.inprise.vbroker.CORBA.portable.InputStream payload,
com.inprise.vbroker.interceptor.Closure closure)
raises (ForwardRequestException)
リクエストがサーバ側に到着するたびに,ORBがこのメソッドを呼び出します。このインタセプタで例外が発生した場合,リクエストはすぐに終了させられます。このメソッドは,Servant Locatorの呼び出し前に呼び出されるため,サーバントは利用できないことがあります。
-
target
リクエスト呼び出し対象のオブジェクト
-
operation
呼び出すオペレーションの名前を識別します。
-
service_contexts
ORBが割り当てたサービスをすべて識別します。このサービスはOMGに規定されているものです。
-
payload
マーシャリング済みバッファ
-
closure
あるインタセプタメソッドが保存したデータを格納する場合があります。このデータは,ほかのインタセプタメソッドがあとで取得できます。
-
-
public void postinvoke_premarshal(
org.omg.CORBA.Object target,
com.inprise.vbroker.IOP.ServiceContextListHolder
service_contexts,
org.omg.CORBA.Environment env,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,サーバントにリクエストを送り,その応答をマーシャリングする前に呼び出されます。ここで発生した例外には,チェーンを中断することによって対処します。exception_occurred( )がチェーンのすべてのインタセプタに対して呼び出されます。
-
target
リクエスト呼び出し対象のオブジェクト
-
service_contexts
ORBが割り当てたサービスをすべて識別します。このサービスはOMGに規定されているものです。
-
env
発生した例外の情報を格納します。
-
closure
あるインタセプタメソッドが保存したデータを格納する場合があります。このデータは,ほかのインタセプタメソッドがあとで取得できます。
-
-
public void postinvoke_postmarshal(
org.omg.CORBA.Object target,
com.inprise.vbroker.CORBA.portable.OutputStream payload,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,応答をマーシャリングしてから,その応答をクライアントに送信する前に呼び出されます。ここで発生した例外は無視されます。チェーン全体が呼び出されるように保証されます。
このメソッドは,ServantLocatorの呼び出し後に呼び出されます。このメソッドに発生した例外は,アプリケーションに発生した例外を置換します。一方向呼び出しでは,リクエストが正常に送信されたあとで呼び出されます。
-
target
リクエスト呼び出し対象のオブジェクト
-
payload
マーシャリング済みバッファ
-
closure
あるインタセプタメソッドが保存したデータを格納する場合があります。このデータは,ほかのインタセプタメソッドがあとで取得できます。
-
-
public void exception_occurred(
org.omg.CORBA.Object target,
org.omg.CORBA.Environment env,
com.inprise.vbroker.interceptor.Closure closure)
このメソッドは,例外発生時にリクエスト処理のどこからでも呼び出せます。この呼び出し中に発生した例外によって,該当する環境の既存の例外が置き換えられなければいけません。
-
target
リクエスト呼び出し対象のオブジェクト
-
env
発生した例外の情報を格納します。
-
closure
あるインタセプタメソッドが保存したデータを格納する場合があります。このデータは,ほかのインタセプタメソッドがあとで取得できます。
-