|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Interface that defines a command in Tarsis MVC Framework.
A command is defined by a bussines activity defined by a set of parameters
it needs to be invoked, an action to be performed when it is invoked and
a set of views to be forwarded when action is completed.
A command has a name which is used to inkove him and can be member of a package.
Packages in Tarsis works same way that packages in Java and are usefull to group
commands.
CommandParameter,
Action,
View| Field Summary | |
|---|---|
static char |
PACKAGE_SEPARATOR
Package separator. |
static int |
STATEFULL
Statefull command type. |
static int |
STATELESS
Stateless command type. |
| Method Summary | |
|---|---|
Action |
getAction()
Returns the Action of this command. |
View |
getDefaultView()
Returns the default View of command. |
java.lang.String |
getFullName()
Returns the fullname of command. |
View |
getInputView()
Returns the input View instance of command. |
java.lang.String |
getName()
Returns the name of command. |
java.lang.String |
getPackage()
Returns the package of command. |
CommandParameter[] |
getParameters()
Returns an array with the parameters of this command. |
int |
getType()
Returns the type of command. |
View |
getView(java.lang.String viewName)
Returns the View of command with matching name. |
boolean |
isCacheable()
Returns true if the command response can be cached by browsers. |
boolean |
isDuplicable()
Returns true if the command can be repeated with same sync ticket. |
boolean |
isSecure()
Returns true if command parameters must be executed in secure
mode (HTTPS). |
boolean |
isValidable()
Returns true if command parameters must be validated. |
| Field Detail |
public static final char PACKAGE_SEPARATOR
public static final int STATELESS
public static final int STATEFULL
| Method Detail |
public java.lang.String getPackage()
public java.lang.String getName()
public java.lang.String getFullName()
public Action getAction()
Action of this command.
Action of this command.public View getView(java.lang.String viewName)
View of command with matching name.
viewName - String name of view.
null.public View getDefaultView()
View of command. The default view is
the view to be invoked when no other matching view has been found. The default
view has a especial name defined in View interface.
View instance of command.public View getInputView()
View instance of command. The input vew is the
view from where the command is invoked.
View instance of command.public CommandParameter[] getParameters()
public boolean isCacheable()
true if the command response can be cached by browsers.
true if the command response can be cached by
browsers.public boolean isDuplicable()
true if the command can be repeated with same sync ticket.
true if the command can be repeated with same sync
ticket.public boolean isValidable()
true if command parameters must be validated.
true if command parameters must be validated.public boolean isSecure()
true if command parameters must be executed in secure
mode (HTTPS).
true if command parameters must be executed in
secure mode (HTTPS).public int getType()
STATELESS and
STATEFULL.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||