Class VelocitySecureActionDoesNothing
- java.lang.Object
-
- org.apache.turbine.modules.ActionEvent
-
- org.apache.turbine.util.velocity.VelocityActionEvent
-
- org.apache.turbine.modules.actions.VelocityAction
-
- org.apache.turbine.modules.actions.VelocitySecureAction
-
- org.apache.turbine.modules.actions.VelocitySecureActionDoesNothing
-
public class VelocitySecureActionDoesNothing extends VelocitySecureAction
This action is used to test the secure action methods.- Author:
- Thomas Vandahl
-
-
Field Summary
Fields Modifier and Type Field Description static int
isAuthorizedCalls
static int
numberOfCalls
static int
pipelineDataCalls
-
Fields inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
initialized, velocity
-
Fields inherited from class org.apache.turbine.modules.ActionEvent
bubbleUpException, BUTTON, BUTTON_LENGTH, DEFAULT_METHOD, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
-
Fields inherited from interface org.apache.turbine.modules.Action
CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX
-
-
Constructor Summary
Constructors Constructor Description VelocitySecureActionDoesNothing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPerform(PipelineData pipelineData, org.apache.velocity.context.Context context)
Default action is throw an exception.protected boolean
isAuthorized(PipelineData pipelineData)
-
Methods inherited from class org.apache.turbine.modules.actions.VelocitySecureAction
perform
-
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction
initialize, setTemplate
-
Methods inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
doPerform
-
Methods inherited from class org.apache.turbine.modules.ActionEvent
considerKey, executeEvents, formatString, getMethod
-
-
-
-
Field Detail
-
numberOfCalls
public static int numberOfCalls
-
pipelineDataCalls
public static int pipelineDataCalls
-
isAuthorizedCalls
public static int isAuthorizedCalls
-
-
Constructor Detail
-
VelocitySecureActionDoesNothing
public VelocitySecureActionDoesNothing()
-
-
Method Detail
-
doPerform
public void doPerform(PipelineData pipelineData, org.apache.velocity.context.Context context) throws Exception
Default action is throw an exception.- Specified by:
doPerform
in classVelocityAction
- Parameters:
pipelineData
- Current RunData informationcontext
- Context to populate- Throws:
Exception
- Thrown on error
-
isAuthorized
protected boolean isAuthorized(PipelineData pipelineData) throws Exception
- Specified by:
isAuthorized
in classVelocitySecureAction
- Throws:
Exception
- See Also:
VelocitySecureAction.isAuthorized(org.apache.turbine.pipeline.PipelineData)
-
-