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, org.apache.struts2.util.ValueStack stack) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0) booleanintorg.apache.velocity.runtime.resource.Resourceorg.apache.velocity.app.event.EventCartridgeObject[]Object[]org.apache.velocity.util.introspection.IntrospectionCacheDatavoidvoidvoidvoidpushCurrentMacroName(String arg0) voidvoidsetAllowRendering(boolean arg0) voidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0) voidsetMacroLibraries(List arg0) voidsetOutputMimeType(String outputMimeType) protected ObjectVelocity 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, superInternalGetMethods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGetKeys, internalPut, internalRemoveMethods 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, org.apache.struts2.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 inSecurityMemberAccessif these keys happen to exist asprotectedfields or methods in the Action class. This method override suppresses such warnings from flooding the logs.- Overrides:
stackGetin classorg.apache.struts2.views.velocity.StrutsVelocityContext
-
getOutputMimeType
- Specified by:
getOutputMimeTypein 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:
attachEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()- Specified by:
getEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-