public class PentahoRequestContextHolder extends Object
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
.
Modifier and Type | Field and Description |
---|---|
static String |
MODE_GLOBAL |
static String |
MODE_INHERITABLETHREADLOCAL |
static String |
SYSTEM_PROPERTY |
Constructor and Description |
---|
PentahoRequestContextHolder() |
Modifier and Type | Method and Description |
---|---|
static org.pentaho.platform.api.engine.IPentahoRequestContext |
getRequestContext()
Returns the IPentahoRequestContext for the current thread
|
static void |
removeRequestContext()
Removes the IPentahoRequestContext for the current thread.
|
static void |
setRequestContext(org.pentaho.platform.api.engine.IPentahoRequestContext requestContext)
Sets an IPentahoRequestContext for the current thread
|
static void |
setStrategyName(String strategyName) |
public static final String MODE_INHERITABLETHREADLOCAL
public static final String MODE_GLOBAL
public static final String SYSTEM_PROPERTY
public static void setRequestContext(org.pentaho.platform.api.engine.IPentahoRequestContext requestContext)
requestContext
- public static org.pentaho.platform.api.engine.IPentahoRequestContext getRequestContext()
public static void removeRequestContext()
public static void setStrategyName(String strategyName)
Copyright © 2019 Hitachi Vantara. All rights reserved.