Class ConfluenceStrutsVelocityContext
java.lang.Object
org.apache.velocity.context.AbstractContext
org.apache.velocity.VelocityContext
org.apache.struts2.views.velocity.StrutsVelocityContext
com.atlassian.confluence.setup.struts.ConfluenceStrutsVelocityContext
- All Implemented Interfaces:
OutputMimeTypeAwareContext
,Cloneable
,org.apache.struts2.util.ValueStackProvider
,org.apache.velocity.context.Context
,org.apache.velocity.context.InternalEventContext
public final class ConfluenceStrutsVelocityContext
extends org.apache.struts2.views.velocity.StrutsVelocityContext
implements OutputMimeTypeAwareContext
A
StrutsVelocityContext
that is
OutputMimeTypeAwareContext
-
Constructor Summary
ConstructorsConstructorDescriptionConfluenceStrutsVelocityContext
(List<org.apache.velocity.VelocityContext> chainedContexts, com.opensymphony.xwork2.util.ValueStack stack) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.velocity.app.event.EventCartridge
attachEventCartridge
(org.apache.velocity.app.event.EventCartridge arg0) boolean
int
org.apache.velocity.runtime.resource.Resource
org.apache.velocity.app.event.EventCartridge
Object[]
Object[]
org.apache.velocity.util.introspection.IntrospectionCacheData
void
void
void
void
pushCurrentMacroName
(String arg0) void
void
setAllowRendering
(boolean arg0) void
setCurrentResource
(org.apache.velocity.runtime.resource.Resource arg0) void
setMacroLibraries
(List arg0) void
setOutputMimeType
(String outputMimeType) protected Object
Velocity keys that cannot be resolved in the ordinary context map are looked up in the ValueStack.Methods inherited from class org.apache.struts2.views.velocity.StrutsVelocityContext
chainedContextGet, contextGetterList, getValueStack, internalContainsKey, internalGet, superInternalGet
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGetKeys, internalPut, internalRemove
Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
-
Constructor Details
-
ConfluenceStrutsVelocityContext
public ConfluenceStrutsVelocityContext(List<org.apache.velocity.VelocityContext> chainedContexts, com.opensymphony.xwork2.util.ValueStack stack)
-
-
Method Details
-
stackGet
Velocity keys that cannot be resolved in the ordinary context map are looked up in the ValueStack. However, this fall back behaviour can trigger forbidden access warnings inSecurityMemberAccess
if these keys happen to exist asprotected
fields or methods in the Action class. This method override suppresses such warnings from flooding the logs.- Overrides:
stackGet
in classorg.apache.struts2.views.velocity.StrutsVelocityContext
-
getOutputMimeType
- Specified by:
getOutputMimeType
in interfaceOutputMimeTypeAwareContext
- Returns:
- the MIME type of the destination format for this context.
-
setOutputMimeType
-
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() -
getAllowRendering
public boolean getAllowRendering() -
setAllowRendering
public void setAllowRendering(boolean arg0) -
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
-