|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.command.CommandImpl
public final class CommandImpl
Implementation of Command
interface.
Field Summary |
---|
Fields inherited from interface org.talika.tarsis.command.Command |
---|
PACKAGE_SEPARATOR, STATEFULL, STATELESS |
Constructor Summary | |
---|---|
CommandImpl(java.lang.String name,
java.lang.String pak)
Constructs a new CommandImpl object with specified name and
package. |
|
CommandImpl(java.lang.String name,
java.lang.String pak,
Action action,
View[] views,
View inputView,
CommandParameter[] parameters,
boolean cacheable,
boolean duplicable,
boolean validable,
boolean secure,
int type)
Constructs a new CommandImpl object with specified parameters. |
Method Summary | |
---|---|
protected void |
addParameter(CommandParameter parameter)
Adds a parameter to command. |
protected void |
addParameters(java.util.Collection parameters)
Adds a collection of parameters to command. |
protected void |
addView(View view)
Adds a view to command. |
Action |
getAction()
Returns action of command. |
View |
getDefaultView()
Returns the default view of this command. |
java.lang.String |
getFullName()
Returns full name of command. |
View |
getInputView()
Returns the input view of command. |
java.lang.String |
getName()
Returns name of command. |
java.lang.String |
getPackage()
Returns package of command. |
CommandParameter[] |
getParameters()
Returns an array with the parameters of 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. |
protected void |
setAction(Action action)
Sets action of command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandImpl(java.lang.String name, java.lang.String pak)
CommandImpl
object with specified name and
package.
name
- String name of command.pak
- String package of command.public CommandImpl(java.lang.String name, java.lang.String pak, Action action, View[] views, View inputView, CommandParameter[] parameters, boolean cacheable, boolean duplicable, boolean validable, boolean secure, int type)
CommandImpl
object with specified parameters.
name
- String name of command.pak
- String package of command.action
- Action action of command.views
- View[] views of command.inputView
- View input view of command.parameters
- CommandParameter[] parameters of command.cacheable
- boolean can command be cached.duplicable
- boolean can command be duplicate.validable
- boolean must command be validated.secure
- boolean must command be invoked HTTPS.type
- int type of command.Method Detail |
---|
public java.lang.String getName()
getName
in interface Command
Command.getName()
public java.lang.String getPackage()
getPackage
in interface Command
Command.getPackage()
public java.lang.String getFullName()
getFullName
in interface Command
Command.getFullName()
public Action getAction()
getAction
in interface Command
Command.getAction()
protected void setAction(Action action)
action
- Action action instance to set.public View getView(java.lang.String viewName)
getView
in interface Command
viewName
- String name of view.
Command.getView(String)
public View getDefaultView()
getDefaultView
in interface Command
Command.getDefaultView()
public View getInputView()
getInputView
in interface Command
Command.getInputView()
protected void addView(View view)
view
- View view to be added.public CommandParameter[] getParameters()
getParameters
in interface Command
Command.getParameters()
protected void addParameter(CommandParameter parameter)
parameter
- CommandParameter parameter to be added.protected void addParameters(java.util.Collection parameters)
parameters
- Collection collection of parameters to be added.public boolean isCacheable()
true
if the command response can be cached by browsers.
isCacheable
in interface Command
true
if the command response can be cached by
browsers.Command.isCacheable()
public boolean isDuplicable()
true
if the command can be repeated with same sync ticket.
isDuplicable
in interface Command
true
if the command can be repeated with same sync
ticket.Command.isDuplicable()
public boolean isValidable()
true
if command parameters must be validated.
isValidable
in interface Command
true
if command parameters must be validated.Command.isValidable()
public boolean isSecure()
true
if command parameters must be executed in secure
mode (HTTPS).
isSecure
in interface Command
true
if command parameters must be executed in
secure mode (HTTPS).Command.isSecure()
public int getType()
getType
in interface Command
Command.getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |