|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.Sessions
public class Sessions
Utilities to access Session
.
Field Summary | |
---|---|
protected static int |
_cnt
|
protected static java.lang.ThreadLocal |
_sess
Used to the store the session for the current thread. |
Constructor Summary | |
---|---|
protected |
Sessions()
|
Method Summary | |
---|---|
static int |
getCount()
Returns the number of total alive session. |
static Session |
getCurrent()
Returns the session for the current thread. |
static Session |
getCurrent(boolean create)
Returns the session for the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.ThreadLocal _sess
protected static int _cnt
Constructor Detail |
---|
protected Sessions()
Method Detail |
---|
public static final int getCount()
public static final Session getCurrent()
public static final Session getCurrent(boolean create)
create
- whether to create a new session if not available.
Notice that this method might return null if it is called in
a working thread or a statelesslet, even though create is true,
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |