public class ExecutionContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_REQUEST |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clears the thread-local map.
|
static void |
destroy()
Destroys the thread-local map.
|
static Object |
get(String key)
Returns the value associated with a key, or null if not found.
|
static Page |
getPage()
Returns the active client page.
|
static ClientRequest |
getRequest()
Returns the active client request.
|
static javax.servlet.ServletContext |
getServletContext()
Returns the servlet context.
|
static Session |
getSession()
Returns the active client session.
|
static void |
invoke(String pid,
Runnable callback)
Invoke a callback in the execution context of the specified page.
|
static boolean |
isEmpty()
Returns true if the thread-local map is empty.
|
static Object |
put(String key,
Object value)
Put a key/value pair in the thread-local map.
|
static Object |
remove(String key)
Removes a value given its key.
|
public static final String ATTR_REQUEST
public static Object put(String key, Object value)
key - The key.value - The value.public static Object get(String key)
key - The key.public static Object remove(String key)
key - The key.public static void clear()
public static void destroy()
public static boolean isEmpty()
public static ClientRequest getRequest()
public static Session getSession()
public static Page getPage()
public static javax.servlet.ServletContext getServletContext()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.