com.atlassian.confluence.velocity.context
Class OutputMimeTypeAwareVelocityContext

java.lang.Object
  extended by org.apache.velocity.context.AbstractContext
      extended by org.apache.velocity.VelocityContext
          extended by com.atlassian.confluence.velocity.context.OutputMimeTypeAwareVelocityContext
All Implemented Interfaces:
OutputMimeTypeAwareContext, Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

public final class OutputMimeTypeAwareVelocityContext
extends org.apache.velocity.VelocityContext
implements OutputMimeTypeAwareContext

Velocity context that allows tracking of its output destination as a MIME type.

Since:
3.0
See Also:
OutputMimeTypeAwareContext, VelocityContext

Constructor Summary
OutputMimeTypeAwareVelocityContext()
           
OutputMimeTypeAwareVelocityContext(org.apache.velocity.context.Context context)
           
OutputMimeTypeAwareVelocityContext(Map map)
           
OutputMimeTypeAwareVelocityContext(Map map, org.apache.velocity.context.Context context)
           
 
Method Summary
 String getOutputMimeType()
           
 void setOutputMimeType(String outputMimeType)
           
 
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemove
 
Methods inherited from class org.apache.velocity.context.AbstractContext
containsKey, get, getChainedContext, getKeys, put, remove
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputMimeTypeAwareVelocityContext

public OutputMimeTypeAwareVelocityContext()

OutputMimeTypeAwareVelocityContext

public OutputMimeTypeAwareVelocityContext(Map map)

OutputMimeTypeAwareVelocityContext

public OutputMimeTypeAwareVelocityContext(org.apache.velocity.context.Context context)

OutputMimeTypeAwareVelocityContext

public OutputMimeTypeAwareVelocityContext(Map map,
                                          org.apache.velocity.context.Context context)
Method Detail

getOutputMimeType

public String getOutputMimeType()
Specified by:
getOutputMimeType in interface OutputMimeTypeAwareContext
Returns:
the MIME type of the destination format for this context.

setOutputMimeType

public void setOutputMimeType(String outputMimeType)


Copyright © 2003-2011 Atlassian. All Rights Reserved.