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 SummaryConstructorsConstructorDescriptionStrutsVelocityContext(List<org.apache.velocity.VelocityContext> chainedContexts, ValueStack stack) Creates a content with link to the ValueStack and any other Velocity contexts
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) protected ObjectchainedContextGet(String key) intorg.apache.velocity.runtime.resource.Resourceorg.apache.velocity.app.event.EventCartridgeList<org.apache.velocity.Template>String[]String[]org.apache.velocity.util.introspection.IntrospectionCacheDatavoidbooleaninternalGet(String key) voidvoidvoidpushCurrentMacroName(String arg0) voidvoidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) voidsetMacroLibraries(List<org.apache.velocity.Template> arg0) protected Objectprotected ObjectsuperInternalGet(String key) Methods inherited from class org.apache.velocity.VelocityContextclone, internalGetKeys, internalPut, internalRemoveMethods inherited from class org.apache.velocity.context.AbstractContextcontainsKey, get, getChainedContext, getKeys, put, remove
- 
Constructor Details- 
StrutsVelocityContextpublic 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 to
- stack- Struts ValueStack
- Since:
- 6.0.0
 
 
- 
- 
Method Details- 
internalContainsKey- Overrides:
- internalContainsKeyin class- org.apache.velocity.VelocityContext
 
- 
internalGet- Overrides:
- internalGetin class- org.apache.velocity.VelocityContext
 
- 
contextGetterList
- 
superInternalGet
- 
stackGet
- 
chainedContextGet
- 
getValueStack- Specified by:
- getValueStackin interface- ValueStackProvider
 
- 
pushCurrentTemplateName
- 
popCurrentTemplateNamepublic void popCurrentTemplateName()
- 
getCurrentTemplateName
- 
getTemplateNameStack
- 
pushCurrentMacroName
- 
popCurrentMacroNamepublic void popCurrentMacroName()
- 
getCurrentMacroName
- 
getCurrentMacroCallDepthpublic int getCurrentMacroCallDepth()
- 
getMacroNameStack
- 
icacheGet
- 
icachePutpublic void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1) 
- 
setCurrentResourcepublic void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) 
- 
getCurrentResourcepublic org.apache.velocity.runtime.resource.Resource getCurrentResource()
- 
setMacroLibraries
- 
getMacroLibraries
- 
attachEventCartridgepublic org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) - Specified by:
- attachEventCartridgein interface- org.apache.velocity.context.InternalEventContext
 
- 
getEventCartridgepublic org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
- getEventCartridgein interface- org.apache.velocity.context.InternalEventContext
 
 
-