org.pentaho.platform.api.engine
Interface IPentahoRequestContextHolderStrategy

All Known Implementing Classes:
GlobalPentahoRequestContextHolderStrategy, InheritableThreadLocalPentahoRequestContextHolderStrategy

public interface IPentahoRequestContextHolderStrategy

A strategy for storing an IPentahoRequestContext against a thread.

Inspired by org.springframework.security.context.SecurityContextHolderStrategy.

Author:
rmansoor

Method Summary
 IPentahoRequestContext getRequestContext()
          Returns the current request context.
 void removeRequestContext()
          Clears the current request context.
 void setRequestContext(IPentahoRequestContext requestContext)
          Sets the current request context.
 

Method Detail

setRequestContext

void setRequestContext(IPentahoRequestContext requestContext)
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.