|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionCtrl
Additional interface of Session for implementation.
Note: applications shall never access this interface.
| Method Summary | |
|---|---|
DesktopCache |
getDesktopCache()
Returns the desktop cache, or null if not available. |
int |
getNextUuidGroup(int groupSize)
Returns a sequence of UUID for DesktopCtrl.getNextUuid()
to generate component UUID. |
void |
invalidateNow()
Really invalidates the session. |
boolean |
isInvalidated()
Returns whether this session is invalidated (i.e., Session.invalidate() was called). |
void |
notifyClientRequest(boolean keepAlive)
Notifies the session that a client request is received. |
void |
onDestroyed()
Called when the session is destroyed. |
void |
recover(java.lang.Object nativeSession)
Called when ZK detects Session.getNativeSession()
is not initialized properly. |
void |
setDesktopCache(DesktopCache cache)
Sets the desktop cache. |
void |
setDeviceType(java.lang.String deviceType)
Sets the device type that this session belongs to. |
| Method Detail |
|---|
void setDeviceType(java.lang.String deviceType)
It is called by the desktop when Desktop.setDeviceType(java.lang.String)
is called.
Don't call this method directly. Otherwise, the result is inpredictable.
DesktopCache getDesktopCache()
Note: this is an utility to implement DesktopCacheProvider,
which might or might not use this method. Other part of ZK shall not
access this method.
void setDesktopCache(DesktopCache cache)
Note: this is an utility to implement DesktopCacheProvider,
which might or might not use this method. Other part of ZK shall not
access this method.
cache - the desktop cache; null to denote no cache available.void onDestroyed()
Application shall never access this method.
void recover(java.lang.Object nativeSession)
Session.getNativeSession()
is not initialized properly.
It is actually a workaround to solve the issue that some Web contrainer fails to call HttpSessionActivationListener.sessionDidActivate() unpon failover.
boolean isInvalidated()
Session.invalidate() was called).
void invalidateNow()
Application shall never access this method.
int getNextUuidGroup(int groupSize)
DesktopCtrl.getNextUuid()
to generate component UUID.
groupSize - how many number of UUID the caller wants.void notifyClientRequest(boolean keepAlive)
keepAlive - if the request will keep the session alive,
or the request shall be ignored.
If the request shall be ignored and the session is timeout,
it will cause the session to expire (i.e., be invalidated).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||