|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.cubby.filter.CubbyFilter
public class CubbyFilter
Cubby フィルター。
要求を解析し、対応するアクションが登録されている場合はアクションを実行します。
フィールドの概要 | |
---|---|
static String |
IGNORE_PATH_PATTERN
ルーティングの対象外とするパスの初期パラメータ名。 |
コンストラクタの概要 | |
---|---|
CubbyFilter()
|
メソッドの概要 | |
---|---|
protected ActionProcessor |
createActionProcessor()
ActionProcessor を生成します。 |
protected MessagesBehaviour |
createMessagesBehaviour()
MessagesBehaviour を生成します。 |
protected PathResolver |
createPathResolver()
PathResolver を生成します。 |
void |
destroy()
|
void |
doFilter(ServletRequest req,
ServletResponse res,
FilterChain chain)
フィルター処理を行います。 |
protected PathInfo |
findPathInfo(HttpServletRequest request,
HttpServletResponse response,
String path,
List<Pattern> ignorePathPatterns)
PathInfo を検索します。 |
void |
init(FilterConfig config)
このフィルタを初期化します。 |
protected PathInfo |
invokeRouting(HttpServletRequest request,
HttpServletResponse response,
String path,
PathResolver pathResolver)
指定されたパスに対応するアクションを決定し、 PathInfo を返します。 |
protected Map<String,Object[]> |
parseRequest(HttpServletRequest request)
指定された要求のパラメータをパースして Map に変換します。 |
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response,
PathInfo pathInfo)
指定された PathInfo に対する処理を行います。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final String IGNORE_PATH_PATTERN
コンストラクタの詳細 |
---|
public CubbyFilter()
メソッドの詳細 |
---|
public void init(FilterConfig config) throws ServletException
使用可能な初期化パラメータ
初期化パラメータ名 | 初期化パラメータの値 | 例 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
IGNORE_PATH_PATTERN |
ルーティングの対象外とするパスの正規表現をカンマ区切りで指定します。 HotDeploy 時のパフォーマンスにも影響するので、画像やスクリプトを特定のディレクトリに 格納していてアクションを実行するパスと明確に区別できる場合はできる限り指定するようにしてください。 |
<param-name>ignorePathPattern</param-name> <param-value>/img/.*,/js/.*<param-name>この例では /img と /js 以下のパスをルーティングの対象外にします。 |
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |