|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.core.system.PentahoRequestContextHolder
public class PentahoRequestContextHolder
Stores the IPentahoRequestContext object for the current thread so that a web service bean can get to it without requiring it to be passed to its methods.
Configure using system property pentaho.requuestContextHolder.strategy
or setStrategyName(String)
. Valid
values are: MODE_INHERITABLETHREADLOCAL
and MODE_GLOBAL
.
Partially inspired by org.springframework.security.context.SecurityContextHolder
.
Field Summary | |
---|---|
static String |
MODE_GLOBAL
|
static String |
MODE_INHERITABLETHREADLOCAL
|
static String |
SYSTEM_PROPERTY
|
Constructor Summary | |
---|---|
PentahoRequestContextHolder()
|
Method Summary | |
---|---|
static IPentahoRequestContext |
getRequestContext()
Returns the IPentahoRequestContext for the current thread |
static void |
removeRequestContext()
Removes the IPentahoRequestContext for the current thread. |
static void |
setRequestContext(IPentahoRequestContext requestContext)
Sets an IPentahoRequestContext for the current thread |
static void |
setStrategyName(String strategyName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MODE_INHERITABLETHREADLOCAL
public static final String MODE_GLOBAL
public static final String SYSTEM_PROPERTY
Constructor Detail |
---|
public PentahoRequestContextHolder()
Method Detail |
---|
public static void setRequestContext(IPentahoRequestContext requestContext)
requestContext
- public static IPentahoRequestContext getRequestContext()
public static void removeRequestContext()
public static void setStrategyName(String strategyName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |