Class StrutsVelocityContext
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
org.apache.struts2.views.velocity.StrutsVelocityContext
- All Implemented Interfaces:
Serializable
,Cloneable
,ValueStackProvider
,org.apache.velocity.context.Context
,org.apache.velocity.context.InternalEventContext
public class StrutsVelocityContext
extends org.apache.velocity.VelocityContext
implements ValueStackProvider
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStrutsVelocityContext
(List<org.apache.velocity.VelocityContext> chainedContexts, ValueStack stack) Creates a content with link to the ValueStack and any other Velocity contexts -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.velocity.app.event.EventCartridge
attachEventCartridge
(org.apache.velocity.app.event.EventCartridge arg0) protected Object
chainedContextGet
(String key) int
org.apache.velocity.runtime.resource.Resource
org.apache.velocity.app.event.EventCartridge
List<org.apache.velocity.Template>
String[]
String[]
org.apache.velocity.util.introspection.IntrospectionCacheData
void
boolean
internalGet
(String key) void
void
void
pushCurrentMacroName
(String arg0) void
void
setCurrentResource
(org.apache.velocity.runtime.resource.Resource arg0) void
setMacroLibraries
(List<org.apache.velocity.Template> arg0) protected Object
protected Object
superInternalGet
(String key) Methods inherited from class org.apache.velocity.VelocityContext
clone, internalGetKeys, internalPut, internalRemove
Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
-
Constructor Details
-
StrutsVelocityContext
public StrutsVelocityContext(List<org.apache.velocity.VelocityContext> chainedContexts, ValueStack stack) Creates a content with link to the ValueStack and any other Velocity contexts- Parameters:
chainedContexts
- Existing Velocity contexts to chain tostack
- Struts ValueStack- Since:
- 6.0.0
-
-
Method Details
-
internalContainsKey
- Overrides:
internalContainsKey
in classorg.apache.velocity.VelocityContext
-
internalGet
- Overrides:
internalGet
in classorg.apache.velocity.VelocityContext
-
contextGetterList
-
superInternalGet
-
stackGet
-
chainedContextGet
-
getValueStack
- Specified by:
getValueStack
in interfaceValueStackProvider
-
pushCurrentTemplateName
-
popCurrentTemplateName
public void popCurrentTemplateName() -
getCurrentTemplateName
-
getTemplateNameStack
-
pushCurrentMacroName
-
popCurrentMacroName
public void popCurrentMacroName() -
getCurrentMacroName
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth() -
getMacroNameStack
-
icacheGet
-
icachePut
public void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1) -
setCurrentResource
public void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) -
getCurrentResource
public org.apache.velocity.runtime.resource.Resource getCurrentResource() -
setMacroLibraries
-
getMacroLibraries
-
attachEventCartridge
public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) - Specified by:
attachEventCartridge
in interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
getEventCartridge
in interfaceorg.apache.velocity.context.InternalEventContext
-