|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.cubby.routing.impl.PathResolverImpl
public class PathResolverImpl
クラスパスから Action
を検索し、クラス名やメソッド名、そのクラスやメソッドに指定された
Path
の情報からアクションのパスを抽出し、リクエストされたパスをどのメソッドに振り分けるかを決定します。
コンストラクタの概要 | |
---|---|
PathResolverImpl()
インスタンス化します。 |
メソッドの概要 | |
---|---|
void |
add(String actionPath,
Class<? extends Action> actionClass,
String methodName,
RequestMethod... requestMethods)
ルーティング情報を登録します。 |
void |
dispose()
|
InternalForwardInfo |
getInternalForwardInfo(String path,
String requestMethod)
指定されたパスとメソッドからフォワードするための情報を抽出します。 |
void |
initialize()
初期化します。 |
void |
setNamingConvention(NamingConvention namingConvention)
命名規約を設定します。 |
void |
setUriEncoding(String uriEncoding)
URI エンコーディングを設定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PathResolverImpl()
メソッドの詳細 |
---|
public void setUriEncoding(String uriEncoding)
uriEncoding
- URI エンコーディングpublic void initialize()
public void dispose()
Disposable
内の dispose
public void add(String actionPath, Class<? extends Action> actionClass, String methodName, RequestMethod... requestMethods)
クラスパスを検索して自動登録されるルーティング情報以外にも、このメソッドによって手動でルーティング情報を登録できます。
actionPath
- アクションのパスactionClass
- アクションクラスmethodName
- アクションメソッド名requestMethods
- リクエストメソッドpublic InternalForwardInfo getInternalForwardInfo(String path, String requestMethod)
パスにマッチするパターンがない場合は null
を返します。
PathResolver
内の getInternalForwardInfo
path
- パスrequestMethod
- HTTPメソッド
public void setNamingConvention(NamingConvention namingConvention)
namingConvention
- 命名規約
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |