Package nablarch.fw.web.interceptor
Class OnError.Impl
java.lang.Object
nablarch.fw.Interceptor.Impl<HttpRequest,HttpResponse,OnError>
nablarch.fw.web.interceptor.OnError.Impl
- All Implemented Interfaces:
Handler<HttpRequest,,HttpResponse> HandlerWrapper<HttpRequest,HttpResponse>
- Enclosing class:
- OnError
OnErrorインターセプタの実装。- Author:
- Iwauo Tajima <iwauo@tis.co.jp>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest req, ExecutionContext ctx) 入力データに対する処理を実行する。Methods inherited from class nablarch.fw.Interceptor.Impl
getDelegates, getInterceptor, getOriginalHandler, setInterceptor, setOriginalHandler
-
Constructor Details
-
Impl
public Impl()
-
-
Method Details
-
handle
入力データに対する処理を実行する。このクラスの実装では、以下の処理を行う。 1.
OnErrorアノテーションが付与されたhandleメソッドを実行する。 2a. 1.の結果、OnError.type()に指定された例外クラスが送出された場合は、 statusCodeに指定されたステータスコード、pathに指定されたコンテンツパスの レスポンスエラー例外を送出する。 2b. そうでない場合は、1.の結果をそのまま返却する。OnErrorアノテーションのOnError.type()に指定された実行時例外を捕捉し、 同じくOnError.path()に指定された画面へのレスポンスを作成して返す。- Parameters:
req- 入力データctx- 実行コンテキスト- Returns:
- 処理結果データ
-