public class ConversationContext extends Object implements IQContextContainer
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ConversationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAttached() |
void |
destroy()
Force this context to destroy itself.
|
protected void |
discardTempFiles() |
void |
dump() |
List<QContextContainer> |
getAllContextContainers() |
Object |
getAttribute(String name)
EXPERIMENTAL DO NOT USE.
|
QContextContainer |
getContextContainer(String key) |
String |
getFullId() |
String |
getId()
Return the ID for this conversation.
|
WindowSession |
getWindowSession()
Experimental interface: get the WindowSession for this page(set).
|
void |
internalRegisterPage(Page p,
IPageParameters papa) |
boolean |
isPollCallbackRequired()
If the page has asynchronous stuff, this returns true.
|
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) |
<T extends NodeContainer & IPolledForUpdate> |
registerPoller(T nc)
Registers a node as a thingy which needs to be called every polltime seconds to
update the screen.
|
void |
registerTempFile(File f)
Register a file that was uploaded and that needs to be deleted at end of conversation time.
|
DelayedActivityInfo |
scheduleDelayed(AsyncContainer container,
IAsyncRunnable a)
Schedule an activity to be started later.
|
void |
setAttribute(String name,
Object val)
EXPERIMENTAL DO NOT USE.
|
void |
startDelayedExecution() |
String |
toString() |
<T extends NodeContainer & IPolledForUpdate> |
unregisterPoller(T nc) |
public final String getId()
public String getFullId()
public void onAttach()
throws Exception
Exceptionpublic void onDetach()
throws Exception
Exceptionpublic void checkAttached()
public void destroy()
public void internalRegisterPage(@Nonnull Page p, @Nonnull IPageParameters papa)
@Nonnull public WindowSession getWindowSession()
public void setAttribute(String name, Object val)
name - val - @Nullable public Object getAttribute(String name)
name - public DelayedActivityInfo scheduleDelayed(@Nonnull AsyncContainer container, @Nonnull IAsyncRunnable a) throws Exception
IAsyncListener.onActivityScheduled(IAsyncRunnable) method of
all listeners, and stores their "keep object" for later use.container - a - Exceptionpublic void startDelayedExecution()
public boolean isPollCallbackRequired()
public <T extends NodeContainer & IPolledForUpdate> void registerPoller(T nc)
nc - public <T extends NodeContainer & IPolledForUpdate> void unregisterPoller(T nc)
public void registerTempFile(@Nonnull File f)
f - protected void discardTempFiles()
public void dump()
public boolean isValid()
@Nonnull public QContextContainer getContextContainer(@Nonnull String key)
getContextContainer in interface IQContextContainer@Nonnull public List<QContextContainer> getAllContextContainers()
getAllContextContainers in interface IQContextContainerCopyright © 2017 etc.to. All rights reserved.