public interface IAction extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CsrfGuardException csrfGuardException,
CsrfGuard csrfGuard)
Executes this action.
|
String |
getName() |
String |
getParameter(String name) |
Map<String,String> |
getParameterMap() |
void |
setName(String name)
Sets the name of the action
|
void |
setParameter(String name,
String value)
Sets a parameter with a custom name and value
|
void setName(String name)
name - the name of the actionString getName()
void setParameter(String name, String value)
name - the name of the parametervalue - the value of the parameterString getParameter(String name)
name - the name of the parametervoid execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
CsrfGuardException csrfGuardException,
CsrfGuard csrfGuard)
throws CsrfGuardException
request - the HTTP request that triggered a potential CSRF attackresponse - the HTTP response object associated with the potentially malicious HTTP requestcsrfGuardException - the CSRF Guard exception objectcsrfGuard - the main CSRF Guard object, with access to inner workings of the solutionCsrfGuardException - the exception type thrown in case of a potential CSRF attackCopyright © 2025 OWASP. All rights reserved.