public abstract class HTTPActionEventFilterHandler extends HTTPActionEventHandler
HTTPActionEventHandler をフィルタリングする HTTPActionEventHandler は、 このクラスをスーパークラスとして実装する事を推奨します。
ユーザプログラムでは、フィルタリングしたいハンドラを基礎ハンドラとして フィルタハンドラを作成し、フィルタハンドラの HTTPActionEventHandler.execute(java.net.HttpURLConnection)
を呼び出すことで、 Application
Runtime でフィルタされた効果を得ながら 基礎ハンドラが指定するイベントを実行する事ができます。
なお、このハンドラを利用して呼び出すフィルターイベントは、 FilterHTTPActionEvent
を実装しているクラスでなければいけません。
修飾子 | コンストラクタと説明 |
---|---|
protected |
HTTPActionEventFilterHandler(HTTPActionEventHandler handler)
HTTPActionEvent の呼び出しをフィルタリングするためのハンドラを作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected Properties |
getEventRequestParameterMap()
イベントに対するパラメータのマップを返します。
|
protected String |
getFilterParameter(String key)
このフィルタのパラメータを返します。
|
protected Properties |
getFilterParameterMap()
このハンドラによって実行されるフィルタイベントに対する 設定済みパラメータのマップを返します。
|
abstract String |
getName()
フィルタイベント名を返します。
|
String |
getParameter(String key)
設定したパラメータ値を取得します。
|
Set<String> |
getParameterKeySet()
現在、パラメータとして設定されているキーの一覧を返します。
|
Properties |
getParameterMap()
設定済みパラメータのマップのコピーを返します。
|
HTTPActionEventHandler |
getParent()
このオブジェクトがフィルタリングしているハンドラを返します。
|
boolean |
hasParameter(String key)
設定したパラメータ名にパラメータがマッピングされているかどうか検査します。
|
protected String |
removeFilterParameter(String key)
このフィルタのパラメータを削除します。
|
void |
removeParameter(String key)
指定のキーのマップを削除します。
|
protected void |
setFilterParameter(String key,
String value)
このフィルタのパラメータを設定します。
|
void |
setParameter(String key,
String value)
イベントへのパラメータを設定します。
|
execute, execute, execute, getCharacterEncoding, setCharacterEncoding, setHostnameVerifier, setSSLContext
protected HTTPActionEventFilterHandler(HTTPActionEventHandler handler)
handler
- フィルタリングするハンドラNullPointerException
- 引数が null の場合public HTTPActionEventHandler getParent()
public abstract String getName()
実際には、Application Runtime で実行される FilterHTTPActionEvent
を
実装したクラスのクラス名を返します。
getName
クラス内 HTTPActionEventHandler
public void setParameter(String key, String value)
このメソッドは、単純のラップしている親ハンドラの #getParameter(String, String) を呼び出します。
setParameter
クラス内 HTTPActionEventHandler
key
- キーvalue
- 値public String getParameter(String key)
このメソッドは、単純のラップしている親ハンドラの #getParameter(String) を呼び出します。
getParameter
クラス内 HTTPActionEventHandler
key
- キーpublic boolean hasParameter(String key)
このメソッドは、単純のラップしている親ハンドラの #hasParameter(String) を呼び出します。
hasParameter
クラス内 HTTPActionEventHandler
key
- キーpublic Set<String> getParameterKeySet()
このメソッドは、単純のラップしている親ハンドラの #getParameterKeySet() を呼び出します。
getParameterKeySet
クラス内 HTTPActionEventHandler
public void removeParameter(String key)
このメソッドは、単純のラップしている親ハンドラの #removeParameter(String) を 呼び出します。
removeParameter
クラス内 HTTPActionEventHandler
key
- キーpublic Properties getParameterMap()
このメソッドは、単純のラップしている親ハンドラの #getParameterMap() を 呼び出します。
getParameterMap
クラス内 HTTPActionEventHandler
protected void setFilterParameter(String key, String value)
key
- パラメータ名value
- パラメータの値protected String getFilterParameter(String key)
key
- パラメータ名protected String removeFilterParameter(String key)
key
- パラメータ名protected Properties getFilterParameterMap() throws HTTPActionEventHandlerParameterException
HTTPActionEventHandlerParameterException
- パラメータに異常がある場合protected final Properties getEventRequestParameterMap() throws HTTPActionEventHandlerParameterException
getEventRequestParameterMap
クラス内 HTTPActionEventHandler
HTTPActionEventHandlerParameterException
- パラメータに異常がある場合Copyright © 2012 NTT DATA INTRAMART CORPORATION