|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.PojoAction
public class PojoAction
This is just an object that can hold up everything that makes up an action: input, output, session, etc. The purpose of this class is to hold the necessary information of an action that does not extend BaseAction or implement Action. It is a plain object.
| Field Summary | |
|---|---|
static String |
RESULT
|
| Fields inherited from interface org.mentawai.core.Action |
|---|
ACCESSDENIED, ADD, AJAX, ALREADY, BACK, BLOCKED, CREATED, EDIT, ERROR, EXCEPTION, HTML, INDEX, JSON, JSP, LIST, LOGIN, MAIN, NEXT, NOT_FOUND, NULL, REMOVED, SHOW, STREAM, SUCCESS, TEST, UPDATED, XML |
| Constructor Summary | |
|---|---|
PojoAction(Object pojo)
|
|
| Method Summary | |
|---|---|
String |
execute()
|
static Action |
getAction()
|
Context |
getApplication()
Gets this action application context. |
Context |
getCookies()
Gets the cookie context for this action. |
static List<Filter> |
getFilterStack()
|
Input |
getInput()
Gets the action input. |
Locale |
getLocale()
Gets the use locale for this action. |
Output |
getOutput()
Gets the action output. |
Object |
getPojo()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String RESULT
| Constructor Detail |
|---|
public PojoAction(Object pojo)
| Method Detail |
|---|
public static List<Filter> getFilterStack()
public Object getPojo()
public static Action getAction()
public String execute()
throws Exception
Exceptionpublic void setInput(Input input)
Action
setInput in interface Actioninput - the input to be setpublic void setOutput(Output output)
Action
setOutput in interface Actionoutput - the output to be setpublic void setSession(Context context)
Action
setSession in interface Actioncontext - The context to be setpublic void setApplication(Context context)
Action
setApplication in interface Actioncontext - The context to be setpublic void setCookies(Context context)
Action
setCookies in interface Actioncontext - The cookie context to be setpublic void setLocale(Locale loc)
Action
setLocale in interface Actionloc - The user locale to set.public Input getInput()
Action
getInput in interface Actionpublic Output getOutput()
Action
getOutput in interface Actionpublic Context getSession()
Action
getSession in interface Actionpublic Context getApplication()
Action
getApplication in interface Actionpublic Context getCookies()
Action
getCookies in interface Actionpublic Locale getLocale()
Action
getLocale in interface Action
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||