Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.velocity.context.InternalContextBase
(package private) class InternalContextBase
extends java.lang.Object
implements InternalHousekeepingContext, InternalEventContext, Serializable
Field Summary | |
private Resource |
|
private EventCartridge |
|
private HashMap |
|
private Stack |
|
Method Summary | |
EventCartridge | |
Resource |
|
String |
|
EventCartridge | |
Object[] |
|
IntrospectionCacheData |
|
void |
|
void |
|
void |
|
void |
private Resource currentResource
Current resource - used for carrying encoding and other information down into the rendering process
private EventCartridge eventCartridge
EventCartridge we are to carry. Set by application
private HashMap introspectionCache
cache for node/context specific introspection information
private Stack templateNameStack
Template name stack. The stack top contains the current template name.
public EventCartridge attachEventCartridge(EventCartridge ec)
- Specified by:
- attachEventCartridge in interface InternalEventContext
public Resource getCurrentResource()
temporary fix to enable #include() to figure out current encoding.
- Specified by:
- getCurrentResource in interface InternalHousekeepingContext
public String getCurrentTemplateName()
get the current template name
- Specified by:
- getCurrentTemplateName in interface InternalHousekeepingContext
- Returns:
- String current template name
public EventCartridge getEventCartridge()
- Specified by:
- getEventCartridge in interface InternalEventContext
public Object[] getTemplateNameStack()
get the current template name stack
- Specified by:
- getTemplateNameStack in interface InternalHousekeepingContext
- Returns:
- Object[] with the template name stack contents.
public IntrospectionCacheData icacheGet(Object key)
returns an IntrospectionCache Data (@see IntrospectionCacheData) object if exists for the key
- Specified by:
- icacheGet in interface InternalHousekeepingContext
- Parameters:
key
- key to find in cache
- Returns:
- cache object
public void icachePut(Object key, IntrospectionCacheData o)
places an IntrospectionCache Data (@see IntrospectionCacheData) element in the cache for specified key
- Specified by:
- icachePut in interface InternalHousekeepingContext
- Parameters:
key
- keyo
- IntrospectionCacheData object to place in cache
public void popCurrentTemplateName()
remove the current template name from stack
- Specified by:
- popCurrentTemplateName in interface InternalHousekeepingContext
public void pushCurrentTemplateName(String s)
set the current template name on top of stack
- Specified by:
- pushCurrentTemplateName in interface InternalHousekeepingContext
- Parameters:
s
- current template name
public void setCurrentResource(Resource r)
- Specified by:
- setCurrentResource in interface InternalHousekeepingContext