|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.state.WindowSession
public final class WindowSession
Manages conversations and the shelve stack. A WindowSession is in charge of all conversations within a given window, and maintains all state there.
Constructor Summary | |
---|---|
WindowSession(AppSession session)
|
Method Summary | |
---|---|
void |
acceptNewConversation(ConversationContext cc)
|
void |
clearGoto()
Clear all goto stuff at request start time. |
ConversationContext |
createConversation(IRequestContext ctx,
java.lang.Class<? extends ConversationContext> clz)
|
protected void |
destroyConversation(ConversationContext cc)
|
void |
dump()
Dump all conversations and their resident pages. |
DomApplication |
getApplication()
|
java.lang.Object |
getAttribute(java.lang.String name)
EXPERIMENTAL DO NOT USE. |
long |
getLastUsed()
|
java.util.List<ShelvedEntry> |
getShelvedPageStack()
|
ConversationContext |
getTargetConversation()
|
java.lang.Class<? extends ConversationContext> |
getTargetConversationClass()
|
MoveMode |
getTargetMode()
|
java.lang.Class<? extends UrlPage> |
getTargetPageClass()
|
PageParameters |
getTargetPageParameters()
|
java.lang.String |
getWindowID()
|
boolean |
handleExceptionGoto(RequestContextImpl ctx,
Page currentpg,
boolean ajax)
Goto handling in EXCEPTION handling mode: only Redirect is allowed here. |
boolean |
handleGoto(RequestContextImpl ctx,
Page currentpg,
boolean ajax)
This checks whether a new page is to be made resident, instead of the current page. |
void |
internalAttachConversations()
Call the "attach" method for all conversations, indicating that a new request is going to be handled. |
void |
internalDetachConversations()
Detach all conversations, called just before the request is done. |
void |
internalSetLastPage(Page page)
|
void |
internalSetNextPage(MoveMode m,
java.lang.Class<? extends UrlPage> clz,
ConversationContext cc,
java.lang.Class<? extends ConversationContext> ccclz,
PageParameters pp)
|
void |
internalSetRedirect(java.lang.String targeturl)
|
Page |
makeOrGetPage(IRequestContext rctx,
java.lang.Class<? extends UrlPage> clz,
PageParameters papa)
Get a valid Page, either from the shelve stack or some other location. |
void |
setAttribute(java.lang.String name,
java.lang.Object val)
EXPERIMENTAL DO NOT USE. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WindowSession(AppSession session)
Method Detail |
---|
public final DomApplication getApplication()
public final java.lang.String getWindowID()
public void internalAttachConversations() throws java.lang.Exception
java.lang.Exception
public void internalDetachConversations()
public void dump()
protected void destroyConversation(ConversationContext cc)
public ConversationContext createConversation(IRequestContext ctx, java.lang.Class<? extends ConversationContext> clz) throws java.lang.Exception
java.lang.Exception
public void acceptNewConversation(ConversationContext cc) throws java.lang.Exception
java.lang.Exception
public java.util.List<ShelvedEntry> getShelvedPageStack()
public boolean handleExceptionGoto(@Nonnull RequestContextImpl ctx, @Nonnull Page currentpg, boolean ajax) throws java.lang.Exception
ctx
- currentpg
- ajax
-
java.lang.Exception
public boolean handleGoto(@Nonnull RequestContextImpl ctx, @Nonnull Page currentpg, boolean ajax) throws java.lang.Exception
ctx
- currentpg
- The page that is current (the one that issued the MOVE command).
java.lang.Exception
public void clearGoto()
public void internalSetNextPage(MoveMode m, java.lang.Class<? extends UrlPage> clz, ConversationContext cc, java.lang.Class<? extends ConversationContext> ccclz, PageParameters pp)
public void internalSetRedirect(java.lang.String targeturl)
public java.lang.Class<? extends UrlPage> getTargetPageClass()
public PageParameters getTargetPageParameters()
public java.lang.Class<? extends ConversationContext> getTargetConversationClass()
public ConversationContext getTargetConversation()
public MoveMode getTargetMode()
public Page makeOrGetPage(IRequestContext rctx, java.lang.Class<? extends UrlPage> clz, PageParameters papa) throws java.lang.Exception
rctx
- clz
- papa
-
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public long getLastUsed()
public void internalSetLastPage(Page page)
public void setAttribute(java.lang.String name, java.lang.Object val)
name
- val
- public java.lang.Object getAttribute(java.lang.String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |