|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.co.intra_mart.foundation.service.provider.application.FilterHTTPActionEvent
Application Runtime で実行されるイベントのための
フィルターイベントの抽象実装です。
実際のイベントをフィルタリングしてラップする場合に利用します。
フィルターイベントを作成する場合は、この抽象実装をスーパークラスとして サブクラスを作成します。 その際、引数を1つも持たない public なコンストラクタを持つ必要があります。
コンストラクタの概要 | |
protected |
FilterHTTPActionEvent()
指定のイベントをラップするためのフィルターを作成します。 |
メソッドの概要 | |
void |
action(HTTPActionEventContext context,
HttpServletRequest request,
HttpServletResponse response)
イベント処理メソッドです。 |
protected abstract void |
doFilter(HTTPActionEventContext context,
HttpServletRequest request,
HttpServletResponse response,
FilterHTTPActionEventChain chain)
イベントのフィルタ処理です。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected FilterHTTPActionEvent()
メソッドの詳細 |
public final void action(HTTPActionEventContext context, HttpServletRequest request, HttpServletResponse response) throws ServletException
Application Runtime で HTTPActionEventListenerServlet により 実行されます。 このメソッドは、Application Runtime 内で実行されるため、 このメソッド内で使用するすべてのクラスは、Application Runtime の 動作する環境内においてアクセスできる必要があります。
このメソッドは、リクエストを適切に処理した後に、
doFilter(HTTPActionEventContext, HttpServletRequest, HttpServletResponse, FilterHTTPActionEventChain)
を呼び出します。
サブクラスは、doFilter(HTTPActionEventContext, HttpServletRequest, HttpServletResponse, FilterHTTPActionEventChain)
をオーバーライドして、
フィルタとして処理したい内容を実装してください。
HTTPActionEvent
内の action
context
- イベントに関する情報request
- HTTPリクエストオブジェクトresponse
- HTTPレスポンスオブジェクト
ServletException
- 実行時エラーprotected abstract void doFilter(HTTPActionEventContext context, HttpServletRequest request, HttpServletResponse response, FilterHTTPActionEventChain chain) throws ServletException
context
- イベントに関する情報request
- HTTPリクエストオブジェクトresponse
- HTTPレスポンスオブジェクトchain
- チェーン内の次のエンティティ
ServletException
- 実行時エラー
|
intra-mart(R) 6.0.13 | ||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |