|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Action
Describes a Mentawai action, the central idea of the framework architecture. An action has an input (org.mentawai.core.Input) and an output (org.mentawai.core.Output). An action generates a result (java.lang.String) after it is executed. The result is usually SUCCESS or ERROR. For each result there is a consequence (org.mentawai.core.Consequence). The consequences for a web application are usually FORWARD or REDIRECT. An action has access to contexts (org.mentawai.core.Context). The contexts for a web application are usually a SessionContext or a ApplicationContext.
| Field Summary | |
|---|---|
static java.lang.String |
ALREADY
|
static java.lang.String |
BLOCKED
|
static java.lang.String |
CREATED
|
static java.lang.String |
ERROR
The action execution generated an error. |
static java.lang.String |
INDEX
|
static java.lang.String |
JSP
|
static java.lang.String |
LIST
|
static java.lang.String |
MAIN
|
static java.lang.String |
NULL
|
static java.lang.String |
REMOVED
|
static java.lang.String |
SHOW
|
static java.lang.String |
SUCCESS
The action execution was successful. |
static java.lang.String |
TEST
|
static java.lang.String |
UPDATED
|
| Method Summary | |
|---|---|
Context |
getApplication()
Gets this action application context. |
Context |
getCookies()
Gets the cookie context for this action. |
Input |
getInput()
Gets the action input. |
java.util.Locale |
getLocale()
Gets the use locale for this action. |
Output |
getOutput()
Gets the action output. |
Context |
getSession()
Gets this action session context. |
void |
setApplication(Context context)
Sets the application context for this action. |
void |
setCookies(Context context)
Sets the cookie context for this action. |
void |
setInput(Input input)
Sets the input for this action. |
void |
setLocale(java.util.Locale loc)
Sets the user locale for this action. |
void |
setOutput(Output output)
Sets the output for this action. |
void |
setSession(Context context)
Sets the session context for this action. |
| Field Detail |
|---|
static final java.lang.String SUCCESS
static final java.lang.String ERROR
static final java.lang.String SHOW
static final java.lang.String LIST
static final java.lang.String INDEX
static final java.lang.String MAIN
static final java.lang.String TEST
static final java.lang.String JSP
static final java.lang.String NULL
static final java.lang.String CREATED
static final java.lang.String UPDATED
static final java.lang.String REMOVED
static final java.lang.String ALREADY
static final java.lang.String BLOCKED
| Method Detail |
|---|
void setInput(Input input)
input - the input to be setvoid setOutput(Output output)
output - the output to be setvoid setSession(Context context)
context - The context to be setvoid setApplication(Context context)
context - The context to be setvoid setCookies(Context context)
context - The cookie context to be setvoid setLocale(java.util.Locale loc)
loc - The user locale to set.Input getInput()
Output getOutput()
Context getSession()
Context getApplication()
Context getCookies()
java.util.Locale getLocale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||