org.radeox.engine.context
Class BaseRenderContext

java.lang.Object
  |
  +--org.radeox.engine.context.BaseRenderContext
All Implemented Interfaces:
RenderContext
Direct Known Subclasses:
BaseInitialRenderContext

public class BaseRenderContext
extends java.lang.Object
implements RenderContext

Base impementation for RenderContext

Version:
$Id: BaseRenderContext.java,v 1.8 2003/10/07 08:20:24 stephan Exp $
Author:
Stephan J. Schmidt

Field Summary
 
Fields inherited from interface org.radeox.api.engine.context.RenderContext
INPUT_BUNDLE_NAME, INPUT_LOCALE, LANGUAGE_BUNDLE_NAME, LANGUAGE_LOCALE, OUTPUT_BUNDLE_NAME, OUTPUT_LOCALE
 
Constructor Summary
BaseRenderContext()
           
 
Method Summary
 void commitCache()
           
 java.lang.Object get(java.lang.String key)
           
 java.util.Map getParameters()
           
 RenderEngine getRenderEngine()
          Returns the RenderEngine handling this request.
 boolean isCacheable()
           
 void set(java.lang.String key, java.lang.Object value)
           
 void setCacheable(boolean cacheable)
           
 void setParameters(java.util.Map parameters)
          Set the parameters for this execution context.
 void setRenderEngine(RenderEngine engine)
          Stores the current RenderEngine of the request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseRenderContext

public BaseRenderContext()
Method Detail

get

public java.lang.Object get(java.lang.String key)
Specified by:
get in interface RenderContext

set

public void set(java.lang.String key,
                java.lang.Object value)
Specified by:
set in interface RenderContext

getParameters

public java.util.Map getParameters()
Specified by:
getParameters in interface RenderContext

setParameters

public void setParameters(java.util.Map parameters)
Description copied from interface: RenderContext
Set the parameters for this execution context. These parameters are read when encountering a variable in macros like {search:$query} or by ParamFilter in {$query}. Query is then read from the parameter map before given to the macro

Specified by:
setParameters in interface RenderContext
Parameters:
parameters - Map of parameters with name,value pairs

getRenderEngine

public RenderEngine getRenderEngine()
Description copied from interface: RenderContext
Returns the RenderEngine handling this request.

Specified by:
getRenderEngine in interface RenderContext
Returns:
engine RenderEngine handling the request within this context

setRenderEngine

public void setRenderEngine(RenderEngine engine)
Description copied from interface: RenderContext
Stores the current RenderEngine of the request

Specified by:
setRenderEngine in interface RenderContext
Parameters:
engine - Current RenderEnginge

setCacheable

public void setCacheable(boolean cacheable)
Specified by:
setCacheable in interface RenderContext

commitCache

public void commitCache()
Specified by:
commitCache in interface RenderContext

isCacheable

public boolean isCacheable()
Specified by:
isCacheable in interface RenderContext


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.