クラス TransactionToken
java.lang.Object
org.terasoluna.gfw.web.token.transaction.TransactionToken
- すべての実装されたインタフェース:
Serializable
Class representing the transaction token string
- 関連項目:
-
コンストラクタの概要
コンストラクタ説明TransactionToken
(String tokenString) Single argument constructorTransactionToken
(String tokenName, String tokenKey, String tokenValue) Multiple argument constructor. -
メソッドの概要
修飾子とタイプメソッド説明Getter method for token keyGetter method for token nameReturns the token stringGetter method for token valueboolean
valid()
Checks whether the an instance ofTransactionToken
is valid.
-
コンストラクタの詳細
-
TransactionToken
Single argument constructor
A valid
tokenString
should be in the following form:tokenName~tokenKey~tokenValue
.
By default an~ (tilde)
is used as a separator for the tokenString- パラメータ:
tokenString
- token string
-
TransactionToken
Multiple argument constructor.Receives token name, key and value separately. All the three form to make the token string in the following format:
tokenName~tokenKey~tokenValue
- パラメータ:
tokenName
- toke nametokenKey
- token keytokenValue
- toke value
-
-
メソッドの詳細
-
getTokenName
Getter method for token name- 戻り値:
- String token name
-
getTokenKey
Getter method for token key- 戻り値:
- String token key
-
getTokenValue
Getter method for token value- 戻り値:
- String token value
-
valid
public boolean valid()Checks whether the an instance ofTransactionToken
is valid. Which means all values are present for all the three parts ofTransactionToken
- 戻り値:
- if all values are present, return
true
-
getTokenString
Returns the token string- 戻り値:
- token string
-