Class OutputAwareStrutsVelocityContext
- java.lang.Object
-
- org.apache.velocity.context.AbstractContext
-
- org.apache.velocity.VelocityContext
-
- org.apache.struts2.views.velocity.StrutsVelocityContext
-
- com.atlassian.confluence.setup.struts.OutputAwareStrutsVelocityContext
-
- All Implemented Interfaces:
OutputMimeTypeAwareContext,Cloneable,org.apache.velocity.context.Context,org.apache.velocity.context.InternalEventContext
public final class OutputAwareStrutsVelocityContext extends org.apache.struts2.views.velocity.StrutsVelocityContext implements OutputMimeTypeAwareContext
AStrutsVelocityContextthat isOutputMimeTypeAwareContext
-
-
Constructor Summary
Constructors Constructor Description OutputAwareStrutsVelocityContext(com.opensymphony.xwork2.util.ValueStack valueStack)OutputAwareStrutsVelocityContext(org.apache.velocity.VelocityContext[] velocityContexts, com.opensymphony.xwork2.util.ValueStack ognlValueStack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)booleangetAllowRendering()intgetCurrentMacroCallDepth()StringgetCurrentMacroName()org.apache.velocity.runtime.resource.ResourcegetCurrentResource()StringgetCurrentTemplateName()org.apache.velocity.app.event.EventCartridgegetEventCartridge()ListgetMacroLibraries()Object[]getMacroNameStack()StringgetOutputMimeType()Object[]getTemplateNameStack()org.apache.velocity.util.introspection.IntrospectionCacheDataicacheGet(Object arg0)voidicachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)voidpopCurrentMacroName()voidpopCurrentTemplateName()voidpushCurrentMacroName(String arg0)voidpushCurrentTemplateName(String arg0)voidsetAllowRendering(boolean arg0)voidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)voidsetMacroLibraries(List arg0)voidsetOutputMimeType(String outputMimeType)-
Methods inherited from class org.apache.struts2.views.velocity.StrutsVelocityContext
internalContainsKey, internalGet
-
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalGetKeys, internalPut, internalRemove
-
-
-
-
Constructor Detail
-
OutputAwareStrutsVelocityContext
public OutputAwareStrutsVelocityContext(com.opensymphony.xwork2.util.ValueStack valueStack)
-
OutputAwareStrutsVelocityContext
public OutputAwareStrutsVelocityContext(org.apache.velocity.VelocityContext[] velocityContexts, com.opensymphony.xwork2.util.ValueStack ognlValueStack)
-
-
Method Detail
-
getOutputMimeType
public String getOutputMimeType()
- Specified by:
getOutputMimeTypein interfaceOutputMimeTypeAwareContext- Returns:
- the MIME type of the destination format for this context.
-
setOutputMimeType
public void setOutputMimeType(String outputMimeType)
-
pushCurrentTemplateName
public void pushCurrentTemplateName(String arg0)
-
popCurrentTemplateName
public void popCurrentTemplateName()
-
getCurrentTemplateName
public String getCurrentTemplateName()
-
getTemplateNameStack
public Object[] getTemplateNameStack()
-
pushCurrentMacroName
public void pushCurrentMacroName(String arg0)
-
popCurrentMacroName
public void popCurrentMacroName()
-
getCurrentMacroName
public String getCurrentMacroName()
-
getCurrentMacroCallDepth
public int getCurrentMacroCallDepth()
-
getMacroNameStack
public Object[] getMacroNameStack()
-
icacheGet
public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(Object arg0)
-
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
public void setMacroLibraries(List arg0)
-
getMacroLibraries
public List 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
-
-