|
||||||||||
| 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 String |
ACCESSDENIED
|
static String |
ADD
|
static String |
AJAX
|
static String |
ALREADY
|
static String |
BACK
|
static String |
BLOCKED
|
static String |
CREATED
|
static String |
EDIT
|
static String |
ERROR
The action execution generated an error. |
static String |
EXCEPTION
|
static String |
HTML
|
static String |
INDEX
|
static String |
JSON
|
static String |
JSP
|
static String |
LIST
|
static String |
LOGIN
|
static String |
MAIN
|
static String |
NEXT
|
static String |
NULL
|
static String |
REMOVED
|
static String |
SHOW
|
static String |
STREAM
|
static String |
SUCCESS
The action execution was successful. |
static String |
TEST
|
static String |
UPDATED
|
static String |
XML
|
| Method Summary | |
|---|---|
Context |
getApplication()
Gets this action application context. |
Context |
getCookies()
Gets the cookie context for this action. |
Input |
getInput()
Gets the action input. |
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(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 String SUCCESS
static final String ERROR
static final String SHOW
static final String LIST
static final String INDEX
static final String MAIN
static final String TEST
static final String JSP
static final String NULL
static final String CREATED
static final String UPDATED
static final String REMOVED
static final String ALREADY
static final String BLOCKED
static final String XML
static final String JSON
static final String HTML
static final String ADD
static final String EDIT
static final String NEXT
static final String BACK
static final String AJAX
static final String STREAM
static final String ACCESSDENIED
static final String LOGIN
static final String EXCEPTION
| 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(Locale loc)
loc - The user locale to set.Input getInput()
Output getOutput()
Context getSession()
Context getApplication()
Context getCookies()
Locale getLocale()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||