|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.command.action.AbstractAction
public abstract class AbstractAction
Base implementation of Action
interface.
Defines all method except validate
and execute
method.
Constructor Summary | |
---|---|
AbstractAction()
Constructs a new AbstractAction object. |
Method Summary | |
---|---|
void |
destroy()
Called by Tarsis MVC Framework to destroy action. |
abstract java.lang.String |
execute(Request request,
Response response)
Called by Tarsis MVC Framework to handle request everytime command is invoked. |
protected Context |
getContext()
Returns the Tarsis context. |
void |
init(Context context)
Called by Tarsis MVC Framework to initialize action. |
abstract void |
validate(Request request)
Called by Tarsis MVC Framework to validate request everytime command is invoked. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAction()
AbstractAction
object.
Method Detail |
---|
public void init(Context context) throws ActionException
init
in interface Action
context
- Context contex of Tarsis MVC Framework.
ActionException
- if an exception has occurred that interferes with the
action's normal operation.Action.init(Context)
public void destroy()
destroy
in interface Action
Action.destroy()
public abstract void validate(Request request) throws ActionException
validate
in interface Action
request
- Request object representing client's request.
ActionException
- if an exception has occurred that interferes with the
action's normal operation.public abstract java.lang.String execute(Request request, Response response) throws ActionException
execute
in interface Action
request
- Request object representing client's request.response
- Response object representing client's reponse.
null
for
default view.
ActionException
- if an exception has occurred that interferes with the
action's normal operation.Action.execute(Request, Response)
protected final Context getContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |