|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.cubby.util.CubbyUtils
public class CubbyUtils
Cubby内部で使用するユーティリティクラスです。
コンストラクタの概要 | |
---|---|
CubbyUtils()
|
メソッドの概要 | |
---|---|
static String |
escapeHtml(Object str)
指定された文字列をHTMLとしてエスケープします。 |
static RequestMethod[] |
getAcceptableRequestMethods(Class<?> actionClass,
Method method)
指定されたアクションメソッドが受付可能なリクエストメソッドを取得します。 |
static String |
getActionDirectory(Class<?> actionClass)
指定されたアクションクラスに対応するディレクトリを取得します。 |
static String |
getActionPath(Class<?> actionClass,
Method method)
指定されたアクションメソッドのパスを取得します。 |
static String |
getInternalForwardPath(Class<? extends Action> actionClass,
String methodName)
アクションクラスとメソッド名から内部フォワードのパスへ変換します。 |
static int |
getObjectSize(Object value)
指定されたオブジェクトのサイズを取得します。 |
static String |
getPath(HttpServletRequest request)
リクエストのURIからコンテキストパスを除いたパスを返します。 |
static boolean |
isActionClass(Class<?> clazz)
指定されたクラスがアクションメソッドかを示します。 |
static boolean |
isActionMethod(Method method)
指定されたメソッドがアクションメソッドかを示します。 |
static String |
replaceFirst(String text,
String replace,
String with)
指定された文字列のなかで、最初に出現した置換対象を置換文字列で置き換えます。 |
static String[] |
split2(String text,
char delim)
指定された文字列を区切り文字で区切った文字列の配列に変換します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public CubbyUtils()
メソッドの詳細 |
---|
public static String getActionDirectory(Class<?> actionClass)
actionClass
- アクションクラス
public static String getActionPath(Class<?> actionClass, Method method)
actionClass
- アクションクラスmethod
- アクションメソッド
public static RequestMethod[] getAcceptableRequestMethods(Class<?> actionClass, Method method)
actionClass
- アクションクラスmethod
- アクションメソッド
public static int getObjectSize(Object value)
value
- オブジェクト
public static String getPath(HttpServletRequest request)
request
- リクエスト
public static String getInternalForwardPath(Class<? extends Action> actionClass, String methodName)
actionClass
- アクションクラスmethodName
- メソッド名
public static boolean isActionClass(Class<?> clazz)
clazz
- クラス
true
、そうでない場合は
false
public static boolean isActionMethod(Method method)
method
- メソッド
true
、そうでない場合は
false
public static String replaceFirst(String text, String replace, String with)
text
- 対象の文字列replace
- 置換対象with
- 置換文字列
public static String[] split2(String text, char delim)
text
- 対象の文字列delim
- 区切り文字
public static String escapeHtml(Object str)
変換前 | 変換後 |
---|---|
& | & |
< | < |
> | > |
" | " |
' | ' |
str
-
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |