|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.util.TokenHelper
TokenHelper
Field Summary | |
static String |
DEFAULT_TOKEN_NAME
The default name to map the token value |
static String |
TOKEN_NAME_FIELD
The name of the field which will hold the token name |
Constructor Summary | |
TokenHelper()
|
Method Summary | |
static String |
getToken(String tokenName,
HttpServletRequest request)
Gets the Token value from the params in the ServletActionContext using the given name |
static String |
getTokenName(HttpServletRequest request)
Gets the token name from the Parameters in the ServletActionContext |
static String |
setToken(HttpServletRequest request)
Sets a transaction token into the session using the default token name. |
static String |
setToken(String tokenName,
HttpServletRequest request)
Sets a transaction token into the session using the provided token name. |
static boolean |
validToken(HttpServletRequest request)
Checks for a valid transaction token in the current request params. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_TOKEN_NAME
public static final String TOKEN_NAME_FIELD
Constructor Detail |
public TokenHelper()
Method Detail |
public static String setToken(HttpServletRequest request)
public static String setToken(String tokenName, HttpServletRequest request)
tokenName
- the name to store into the session with the token as the value
public static String getToken(String tokenName, HttpServletRequest request)
tokenName
- the name of the parameter which holds the token value
public static String getTokenName(HttpServletRequest request)
public static boolean validToken(HttpServletRequest request)
TOKEN_NAME_FIELD
), true if a valid token is found
|
WebWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |