org.apache.shindig.gadgets.render
Class HtmlRenderer
java.lang.Object
org.apache.shindig.gadgets.render.HtmlRenderer
public class HtmlRenderer
- extends Object
Handles producing output markup for a gadget based on the provided context.
|
Method Summary |
protected String |
getViewContent(Gadget gadget,
View view)
|
String |
render(Gadget gadget)
Render the gadget into a string by performing the following steps:
- Retrieve gadget specification information (GadgetSpec, MessageBundle, etc.)
- Fetch any preloaded data needed to handle the request, as handled by Preloader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_PARAM
public static final String PATH_PARAM
- See Also:
- Constant Field Values
HtmlRenderer
@Inject
public HtmlRenderer(PreloaderService preloader,
ProxyRenderer proxyRenderer,
GadgetRewritersProvider gadgetRewritersProvider,
GadgetHtmlParser htmlParser)
render
public String render(Gadget gadget)
throws RenderingException
- Render the gadget into a string by performing the following steps:
- Retrieve gadget specification information (GadgetSpec, MessageBundle, etc.)
- Fetch any preloaded data needed to handle the request, as handled by Preloader.
- Perform rewriting operations on the output content, handled by Rewriter.
- Parameters:
gadget - The gadget for the rendering operation.
- Returns:
- The rendered gadget content
- Throws:
RenderingException - if any issues arise that prevent rendering.
getViewContent
protected String getViewContent(Gadget gadget,
View view)
Copyright © 2007-2012. All Rights Reserved.