org.talika.tarsis.command.action
Class DefaultAction

java.lang.Object
  extended by org.talika.tarsis.command.action.AbstractAction
      extended by org.talika.tarsis.command.action.DefaultAction
All Implemented Interfaces:
Action

public class DefaultAction
extends AbstractAction

Default implementation of Action interface.

Defines all methods of action interface. The implementation of validate and execute are empty and do nothing.

Version:
$Revision: 113 $
Author:
Jose M. Palomar

Constructor Summary
DefaultAction()
          Constructs a new DefaultAction object.
 
Method Summary
 java.lang.String execute(Request request, Response response)
          Called by Tarsis MVC Framework to handle request everytime command is invoked.
 void validate(Request request)
          Called by Tarsis MVC Framework to validate request everytime command is invoked.
 
Methods inherited from class org.talika.tarsis.command.action.AbstractAction
destroy, getContext, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAction

public DefaultAction()
Constructs a new DefaultAction object.

Method Detail

validate

public void validate(Request request)
              throws ActionException
Called by Tarsis MVC Framework to validate request everytime command is invoked.

This method is called only if command is validable.

This implementation do nothing.

Specified by:
validate in interface Action
Specified by:
validate in class AbstractAction
Parameters:
request - Request object representing client's request.
Throws:
ActionException - if an exception has occurred that interferes with the action's normal operation.
See Also:
Action.validate(Request)

execute

public java.lang.String execute(Request request,
                                Response response)
                         throws ActionException
Called by Tarsis MVC Framework to handle request everytime command is invoked.
This implementation do nothing and returns null.

Specified by:
execute in interface Action
Specified by:
execute in class AbstractAction
Parameters:
request - Request object representing client's request.
response - Response object representing client's reponse.
Returns:
String the name of view to be forwarded or null for default view.
Throws:
ActionException - if an exception has occurred that interferes with the action's normal operation.
See Also:
Action.execute(Request, Response)


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.