|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StickyAction
An interface describing a sticky action, in other words, an action that can adhere to the session and persist its state. This is similar to what other frameworks call continuations, but much simpler.
| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
void |
adhere()
Adhere to the session, so the instance of this action will persist until disjoin is called. |
void |
disjoin()
Remove this action from session and discard its instance losing all state (instance variables) associated with it. |
void |
onRemoved()
This method will be called if the session has expired or if it has been invalidated and there are sticky actions still sticked to the session. |
| Methods inherited from interface org.mentawai.core.Action |
|---|
getApplication, getCookies, getInput, getLocale, getOutput, getSession, setApplication, setCookies, setInput, setLocale, setOutput, setSession |
| Method Detail |
|---|
void adhere()
void disjoin()
void onRemoved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||