|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.ThreadContext
public class ThreadContext
Holds thread local state for Wicket data.
| Method Summary | |
|---|---|
static ThreadContext |
detach()
Cleans the ThreadContext and returns previous context. |
static boolean |
exists()
Checks if ThreadContext exists for the current thread |
static ThreadContext |
get(boolean createIfDoesNotExist)
INTERNAL METHOD |
static Application |
getApplication()
|
static RequestCycle |
getRequestCycle()
|
static Session |
getSession()
|
static void |
restore(ThreadContext threadContext)
Restores the context |
static void |
setApplication(Application application)
Binds the specified application to current thread. |
static void |
setRequestCycle(RequestCycle requestCycle)
Binds the RequestCycle to current thread. |
static void |
setSession(Session session)
Binds the session to current thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ThreadContext get(boolean createIfDoesNotExist)
createIfDoesNotExist -
public static boolean exists()
ThreadContext exists for the current thread
true if ThreadContext exists for the current threadpublic static Application getApplication()
Application bound to current threadpublic static void setApplication(Application application)
application - public static RequestCycle getRequestCycle()
RequestCycle bound to current thradpublic static void setRequestCycle(RequestCycle requestCycle)
RequestCycle to current thread.
requestCycle - public static Session getSession()
Session bound to current threadpublic static void setSession(Session session)
session - public static ThreadContext detach()
ThreadContext and returns previous context.
ThreadContextpublic static void restore(ThreadContext threadContext)
threadContext - detach()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||