パッケージ com.handywedge.common
クラス FWStringUtil
- java.lang.Object
-
- com.handywedge.common.FWStringUtil
-
public class FWStringUtil extends Object
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 FWStringUtil()
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static StringconcatContext(String baseUrl)static StringgetActRegisterFailUrl()static StringgetActRegisterSuccessUrl()static StringgetIncludeContextUrl()コンテキストパスまでのプロトコル付URLを返します。static StringgetLoginUrl()static StringgetPreRegisterUrl()static StringgetRegisterUrl()static StringgetResetPasswdFailUrl()static StringgetResetPasswdSuccessUrl()static booleanisByteMoreThan(String src, int maxLength)バイト数のチェック。static booleanisEmpty(String src)static booleanisLengthMoreThan(String src, int maxLength)文字数のチェック。static StringreplaceNullString(String src, String replace)引数の文字列がnullもしくは空文字の場合、置換文字に置換する。static StringsplitBearerToken(String tokenHeader)static StringtrimControlCharset(String src)
-
-
-
メソッドの詳細
-
isEmpty
public static boolean isEmpty(String src)
-
isByteMoreThan
public static boolean isByteMoreThan(String src, int maxLength)
バイト数のチェック。- パラメータ:
src- チェック対象文字列maxLength- 最大バイト数- 戻り値:
- 最大バイト数より大きければtrue
-
isLengthMoreThan
public static boolean isLengthMoreThan(String src, int maxLength)
文字数のチェック。- パラメータ:
src- チェック対象文字列maxLength- 最大文字数- 戻り値:
- 最大文字数より大きければtrue
-
getLoginUrl
public static String getLoginUrl()
-
getRegisterUrl
public static String getRegisterUrl()
-
getPreRegisterUrl
public static String getPreRegisterUrl()
-
getActRegisterSuccessUrl
public static String getActRegisterSuccessUrl()
-
getActRegisterFailUrl
public static String getActRegisterFailUrl()
-
getResetPasswdSuccessUrl
public static String getResetPasswdSuccessUrl()
-
getResetPasswdFailUrl
public static String getResetPasswdFailUrl()
-
getIncludeContextUrl
public static String getIncludeContextUrl()
コンテキストパスまでのプロトコル付URLを返します。- 戻り値:
- コンテキストパスまでのURL
-
replaceNullString
public static String replaceNullString(String src, String replace)
引数の文字列がnullもしくは空文字の場合、置換文字に置換する。- パラメータ:
src- 対象文字列replace- 置換文字列- 戻り値:
- 対象文字列そのまま、もしくは置換文字列
-
-