public final class InternalContextAdapterImpl extends java.lang.Object implements InternalContextAdapter
Modifier and Type | Field and Description |
---|---|
(package private) Context |
context
the user data Context that we are wrapping
|
(package private) InternalHousekeepingContext |
icb
the ICB we are wrapping.
|
(package private) InternalEventContext |
iec
The InternalEventContext that we are wrapping.
|
Constructor and Description |
---|
InternalContextAdapterImpl(Context c)
CTOR takes a Context and wraps it, delegating all 'data' calls
to it.
|
Modifier and Type | Method and Description |
---|---|
EventCartridge |
attachEventCartridge(EventCartridge ec) |
boolean |
containsKey(java.lang.Object key)
Indicates whether the specified key is in the context.
|
java.lang.Object |
get(java.lang.String key)
Gets the value corresponding to the provided key from the context.
|
InternalContextAdapter |
getBaseContext()
Returns the base context that we are
wrapping.
|
Resource |
getCurrentResource()
temporary fix to enable #include() to figure out
current encoding.
|
java.lang.String |
getCurrentTemplateName()
get the current template name
|
EventCartridge |
getEventCartridge() |
Context |
getInternalUserContext()
returns the user data context that
we are wrapping
|
java.lang.Object[] |
getKeys()
Get all the keys for the values in the context
|
java.lang.Object[] |
getTemplateNameStack()
Returns the template name stack in form of an array.
|
IntrospectionCacheData |
icacheGet(java.lang.Object key)
returns an IntrospectionCache Data (@see IntrospectionCacheData)
object if exists for the key
|
void |
icachePut(java.lang.Object key,
IntrospectionCacheData o)
places an IntrospectionCache Data (@see IntrospectionCacheData)
element in the cache for specified key
|
void |
popCurrentTemplateName()
remove the current template name from stack
|
void |
pushCurrentTemplateName(java.lang.String s)
set the current template name on top of stack
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Adds a name/value pair to the context.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the value associated with the specified key from the context.
|
void |
setCurrentResource(Resource r) |
Context context
InternalHousekeepingContext icb
InternalEventContext iec
public InternalContextAdapterImpl(Context c)
public void pushCurrentTemplateName(java.lang.String s)
InternalHousekeepingContext
pushCurrentTemplateName
in interface InternalHousekeepingContext
s
- current template namepublic void popCurrentTemplateName()
InternalHousekeepingContext
popCurrentTemplateName
in interface InternalHousekeepingContext
public java.lang.String getCurrentTemplateName()
InternalHousekeepingContext
getCurrentTemplateName
in interface InternalHousekeepingContext
public java.lang.Object[] getTemplateNameStack()
InternalHousekeepingContext
getTemplateNameStack
in interface InternalHousekeepingContext
public IntrospectionCacheData icacheGet(java.lang.Object key)
InternalHousekeepingContext
icacheGet
in interface InternalHousekeepingContext
key
- key to find in cachepublic void icachePut(java.lang.Object key, IntrospectionCacheData o)
InternalHousekeepingContext
icachePut
in interface InternalHousekeepingContext
key
- keyo
- IntrospectionCacheData object to place in cachepublic void setCurrentResource(Resource r)
setCurrentResource
in interface InternalHousekeepingContext
public Resource getCurrentResource()
InternalHousekeepingContext
getCurrentResource
in interface InternalHousekeepingContext
public java.lang.Object put(java.lang.String key, java.lang.Object value)
Context
public java.lang.Object get(java.lang.String key)
Context
public boolean containsKey(java.lang.Object key)
Context
containsKey
in interface Context
key
- The key to look for.public java.lang.Object[] getKeys()
Context
public java.lang.Object remove(java.lang.Object key)
Context
public Context getInternalUserContext()
getInternalUserContext
in interface InternalWrapperContext
public InternalContextAdapter getBaseContext()
getBaseContext
in interface InternalWrapperContext
public EventCartridge attachEventCartridge(EventCartridge ec)
attachEventCartridge
in interface InternalEventContext
public EventCartridge getEventCartridge()
getEventCartridge
in interface InternalEventContext
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.