|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.servlet.mvc.SynchronizerTokensHolder
class SynchronizerTokensHolder extends java.lang.Object
A token used to handle double-submits.
Field Summary | |
---|---|
static java.lang.String |
HOLDER
|
static java.lang.String |
TOKEN_KEY
|
static java.lang.String |
TOKEN_URI
|
Property Summary | |
---|---|
java.util.Map |
currentTokens
|
Constructor Summary | |
SynchronizerTokensHolder()
|
Method Summary | |
---|---|
java.lang.String
|
generateToken(java.lang.String url)
|
boolean
|
isEmpty()
|
boolean
|
isValid(java.lang.String url, java.lang.String token)
|
void
|
resetToken(java.lang.String url)
|
static SynchronizerTokensHolder
|
store(javax.servlet.http.HttpSession session)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String HOLDER
public static final java.lang.String TOKEN_KEY
public static final java.lang.String TOKEN_URI
Property Detail |
---|
java.util.Map currentTokens
Constructor Detail |
---|
SynchronizerTokensHolder()
Method Detail |
---|
java.lang.String generateToken(java.lang.String url)
boolean isEmpty()
boolean isValid(java.lang.String url, java.lang.String token)
void resetToken(java.lang.String url)
static SynchronizerTokensHolder store(javax.servlet.http.HttpSession session)
Groovy Documentation