Package org.pentaho.platform.api.engine
Interface IPentahoRequestContextHolderStrategy
public interface IPentahoRequestContextHolderStrategy
A strategy for storing an IPentahoRequestContext against a thread.
Inspired by org.springframework.security.context.SecurityContextHolderStrategy
.
- Author:
- rmansoor
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current request context.void
Clears the current request context.void
setRequestContext
(IPentahoRequestContext requestContext) Sets the current request context.
-
Method Details
-
setRequestContext
Sets the current request context.- Parameters:
requestContext
- request context to set
-
getRequestContext
IPentahoRequestContext getRequestContext()Returns the current request context.- Returns:
- requestContext
-
removeRequestContext
void removeRequestContext()Clears the current request context.
-