|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.talika.tarsis.command.action.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 Actioncontext - 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 ActionAction.destroy()
public abstract void validate(Request request)
throws ActionException
validate in interface Actionrequest - 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 Actionrequest - 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 | |||||||||||