| |
|
| java.lang.Object org.directwebremoting.impl.DefaultScriptSession
DefaultScriptSession | public class DefaultScriptSession implements RealScriptSession(Code) | | An implementation of ScriptSession and RealScriptSession.
There are synchronization constraints on this class. See the field
comments of the type: GuardedBy("lock") .
In addition you should note that
DefaultScriptSession and
DefaultScriptSessionManager make calls to each other and you should
take care not to break any constraints in inheriting from these classes.
author: Joe Walker [joe at getahead dot ltd dot uk] |
attributes | final protected Map<String, Object> attributes(Code) | | The server side attributes for this page.
GuardedBy("attributes")
|
conduits | final protected SortedSet<ScriptConduit> conduits(Code) | | The script conduits that we can use to transfer data to the browser.
GuardedBy("scriptLock")
|
creationTime | final protected long creationTime(Code) | | When we we created?
This should not need careful synchronization since it is unchanging
|
id | final protected String id(Code) | | What is our page session id?
This should not need careful synchronization since it is unchanging
|
manager | final protected DefaultScriptSessionManager manager(Code) | | The session manager that collects sessions together
This should not need careful synchronization since it is unchanging
|
page | final protected String page(Code) | | The page being viewed.
|
DefaultScriptSession | protected DefaultScriptSession(String id, DefaultScriptSessionManager manager, String page, String httpSessionId)(Code) | | Simple constructor
Parameters: id - The new unique identifier for this session Parameters: manager - The manager that created us Parameters: page - The URL of the page on which we sit Parameters: httpSessionId - The cookie based id of the browser |
getCreationTime | public long getCreationTime()(Code) | | |
getLastAccessedTime | public long getLastAccessedTime()(Code) | | |
hasWaitingScripts | public boolean hasWaitingScripts()(Code) | | |
hashCode | public int hashCode()(Code) | | |
invalidate | public void invalidate()(Code) | | |
invalidateIfNeeded | protected void invalidateIfNeeded()(Code) | | Check that we are still valid and throw an IllegalStateException if not.
At the same time set the lastAccessedTime flag.
throws: IllegalStateException - If this object has become invalid |
isInvalidated | public boolean isInvalidated()(Code) | | |
removeAttribute | public void removeAttribute(String name)(Code) | | |
setWindowName | public void setWindowName(String windowName)(Code) | | |
updateLastAccessedTime | public void updateLastAccessedTime()(Code) | | |
|
|
|