com.atlassian.confluence.renderer.embedded
Class EmbeddedObjectRenderer
java.lang.Object
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
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 |
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
EmbeddedObjectRenderer
public EmbeddedObjectRenderer()
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 objectcontext
- 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.