Package org.owasp.csrfguard.action
Class AbstractAction
- java.lang.Object
-
- org.owasp.csrfguard.action.AbstractAction
-
- All Implemented Interfaces:
Serializable,IAction
- Direct Known Subclasses:
Empty,Error,Forward,Invalidate,Log,Redirect,RequestAttribute,Rotate
public abstract class AbstractAction extends Object implements IAction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetParameter(String parameterName)Map<String,String>getParameterMap()voidsetName(String name)Sets the name of the actionvoidsetParameter(String name, String value)Sets a parameter with a custom name and value
-
-
-
Method Detail
-
setName
public void setName(String name)
Description copied from interface:IActionSets the name of the action
-
getName
public String getName()
-
setParameter
public void setParameter(String name, String value)
Description copied from interface:IActionSets a parameter with a custom name and value- Specified by:
setParameterin interfaceIAction- Parameters:
name- the name of the parametervalue- the value of the parameter
-
getParameter
public String getParameter(String parameterName)
- Specified by:
getParameterin interfaceIAction- Parameters:
parameterName- the name of the parameter- Returns:
- the configured parameter based on its name
-
getParameterMap
public Map<String,String> getParameterMap()
- Specified by:
getParameterMapin interfaceIAction- Returns:
- the whole parameter map
-
-