|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.state.ConversationContext
public class ConversationContext
A page's conversational context: a base class. Every page is part of a conversation. For simple pages the conversation mostly "is" the page, meaning that when the page ends the conversation ends also. Conversations are mostly useful for pages that must share data. In that case a single, strongly typed, conversation instance must be created which will contain the data maintained by the multiple pages. The pages themselves are also part of the conversation; when the conversation terminates all page instances associated with the conversation also cease to exist.
Field Summary | |
---|---|
static org.slf4j.Logger |
LOG
|
Constructor Summary | |
---|---|
ConversationContext()
|
Method Summary | ||
---|---|---|
void |
checkAttached()
|
|
void |
destroy()
Force this context to destroy itself. |
|
protected void |
discardUploadFiles()
|
|
void |
dump()
|
|
java.lang.Object |
getAttribute(java.lang.String name)
EXPERIMENTAL DO NOT USE. |
|
java.lang.String |
getFullId()
|
|
java.lang.String |
getId()
Return the ID for this conversation. |
|
WindowSession |
getWindowSession()
Experimental interface: get the WindowSession for this page(set). |
|
boolean |
hasDelayedActions()
|
|
QDataContextFactory |
internalGetDataContextFactory()
|
|
QDataContext |
internalGetSharedContext()
|
|
void |
internalRegisterPage(Page p,
PageParameters papa)
|
|
void |
internalSetDataContextFactory(QDataContextFactory s)
|
|
void |
internalSetSharedContext(QDataContext c)
|
|
boolean |
isValid()
|
|
void |
onAttach()
Called when a new request which accesses this context is entering the server. |
|
void |
onDestroy()
|
|
void |
onDetach()
Called when the request has terminated, the response has been rendered and the server is about to exit all handling for the request. |
|
void |
processDelayedResults(Page pg)
|
|
|
registerPoller(T nc)
Registers a node as a thingy which needs to be called every polltime seconds to update the screen. |
|
void |
registerUploadTempFile(java.io.File f)
Register a file that was uploaded and that needs to be deleted at end of conversation time. |
|
DelayedActivityInfo |
scheduleDelayed(AsyncContainer container,
IActivity a)
|
|
void |
setAttribute(java.lang.String name,
java.lang.Object val)
EXPERIMENTAL DO NOT USE. |
|
void |
startDelayedExecution()
|
|
java.lang.String |
toString()
|
|
|
unregisterPoller(T nc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.slf4j.Logger LOG
Constructor Detail |
---|
public ConversationContext()
Method Detail |
---|
public final java.lang.String getId()
public java.lang.String getFullId()
public java.lang.String toString()
toString
in class java.lang.Object
public void onAttach() throws java.lang.Exception
java.lang.Exception
public void onDetach() throws java.lang.Exception
java.lang.Exception
public void onDestroy() throws java.lang.Exception
java.lang.Exception
public void checkAttached()
public void destroy()
public void internalRegisterPage(Page p, PageParameters papa)
public WindowSession getWindowSession()
public void setAttribute(java.lang.String name, java.lang.Object val)
name
- val
- public java.lang.Object getAttribute(java.lang.String name)
name
-
public DelayedActivityInfo scheduleDelayed(AsyncContainer container, IActivity a)
public void startDelayedExecution()
public void processDelayedResults(Page pg) throws java.lang.Exception
java.lang.Exception
public boolean hasDelayedActions()
public <T extends NodeContainer & IPolledForUpdate> void registerPoller(T nc)
nc
- public <T extends NodeContainer & IPolledForUpdate> void unregisterPoller(T nc)
public void registerUploadTempFile(java.io.File f)
f
- protected void discardUploadFiles()
public void dump()
public boolean isValid()
public QDataContext internalGetSharedContext()
internalGetSharedContext
in interface IQContextContainer
public void internalSetSharedContext(QDataContext c)
internalSetSharedContext
in interface IQContextContainer
IQContextContainer.internalSetSharedContext(to.etc.webapp.query.QDataContext)
public QDataContextFactory internalGetDataContextFactory()
internalGetDataContextFactory
in interface IQContextContainer
public void internalSetDataContextFactory(QDataContextFactory s)
internalSetDataContextFactory
in interface IQContextContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |