public abstract static class XsrfCheck.AbstractLinkSubmission extends Object implements XsrfCheck.Submission
Modifier and Type | Field and Description |
---|---|
protected FuncTestHelperFactory |
funcTestHelperFactory |
Constructor and Description |
---|
AbstractLinkSubmission() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getLink() |
void |
init(FuncTestHelperFactory funcTestHelperFactory)
Initialise the submission with state from the checker.
|
void |
removeToken()
Removes the token from the state so that we can test what happens when a "dodgy token" is submitted to an
action that is expecting a good token.
|
void |
submitRequest()
Submits a request to an action that presumably is XSRF-protected and requires a token to be present.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
protected FuncTestHelperFactory funcTestHelperFactory
public void removeToken() throws Exception
XsrfCheck.Submission
removeToken
in interface XsrfCheck.Submission
Exception
- epublic void submitRequest() throws Exception
XsrfCheck.Submission
submitRequest
in interface XsrfCheck.Submission
Exception
- epublic void init(FuncTestHelperFactory funcTestHelperFactory)
XsrfCheck.Submission
init
in interface XsrfCheck.Submission
funcTestHelperFactory
- factoryCopyright © 2002-2015 Atlassian. All Rights Reserved.