com.atlassian.confluence.renderer.embedded
Class EmbeddedObjectRenderer

java.lang.Object
  extended by com.atlassian.confluence.renderer.embedded.EmbeddedObjectRenderer
All Implemented Interfaces:
com.atlassian.renderer.embedded.EmbeddedResourceRenderer
Direct Known Subclasses:
EmbeddedFlashRenderer, EmbeddedRealMediaRenderer

public class EmbeddedObjectRenderer
extends java.lang.Object
implements com.atlassian.renderer.embedded.EmbeddedResourceRenderer

Created by IntelliJ IDEA. User: Jeremy Higgs Date: 22/09/2005 Time: 12:35:13


Field Summary
static java.lang.String TEMPLATE_PATH
           
protected static java.util.List<java.lang.String> validEmbedTags
           
protected static java.util.List<java.lang.String> validObjectTags
           
protected static java.util.List<java.lang.String> validParamTags
           
static java.lang.String WRAPPER_TEMPLATE_PATH
           
 
Constructor Summary
EmbeddedObjectRenderer()
           
 
Method Summary
 java.lang.String renderResource(com.atlassian.renderer.embedded.EmbeddedResource resource, com.atlassian.renderer.RenderContext context)
           
protected  java.util.Map setupObjectProperties(com.atlassian.renderer.embedded.EmbeddedResource resource, com.atlassian.renderer.RenderContext context)
          Retrieves the attachment from an EmbeddedResource, resolving the absolute URL to the attachment and placing it into a ContextMap for use with Velocity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_PATH

public static final java.lang.String TEMPLATE_PATH
See Also:
Constant Field Values

WRAPPER_TEMPLATE_PATH

public static final java.lang.String WRAPPER_TEMPLATE_PATH
See Also:
Constant Field Values

validObjectTags

protected static final java.util.List<java.lang.String> validObjectTags

validEmbedTags

protected static final java.util.List<java.lang.String> validEmbedTags

validParamTags

protected static final java.util.List<java.lang.String> validParamTags
Constructor Detail

EmbeddedObjectRenderer

public EmbeddedObjectRenderer()
Method Detail

setupObjectProperties

protected java.util.Map setupObjectProperties(com.atlassian.renderer.embedded.EmbeddedResource resource,
                                              com.atlassian.renderer.RenderContext context)
Retrieves the attachment from an EmbeddedResource, resolving the absolute URL to the attachment and placing it into a ContextMap for use with Velocity.

Parameters:
resource - the EmbeddedResource object
context - the RenderContext
Returns:
ContextMap containing the embedded resource properties and URL

renderResource

public java.lang.String renderResource(com.atlassian.renderer.embedded.EmbeddedResource resource,
                                       com.atlassian.renderer.RenderContext context)
Specified by:
renderResource in interface com.atlassian.renderer.embedded.EmbeddedResourceRenderer


Copyright © 2003-2010 Atlassian. All Rights Reserved.