public class CajaContentRewriter extends Object implements GadgetRewriter
| Modifier and Type | Class and Description |
|---|---|
class |
CajaContentRewriter.CajoledResult |
| Modifier and Type | Field and Description |
|---|---|
static String |
CAJOLED_MODULES |
| Constructor and Description |
|---|
CajaContentRewriter(CacheProvider cacheProvider,
RequestPipeline requestPipeline,
HtmlSerializer htmlSerializer,
ProxyUriManager proxyUriManager) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.caja.plugin.PluginCompiler |
makePluginCompiler(com.google.caja.plugin.PluginMeta meta,
com.google.caja.reporting.MessageQueue mq) |
protected com.google.caja.plugin.UriPolicy |
makePolicy(Uri gadgetUri) |
void |
rewrite(Gadget gadget,
MutableContent mc)
Rewrite the gadget.
|
CajaContentRewriter.CajoledResult |
rewrite(Uri gadgetUri,
String container,
com.google.caja.parser.ParseTreeNode root,
boolean es53,
boolean debug) |
CajaContentRewriter.CajoledResult |
rewrite(Uri uri,
String container,
String mime,
boolean es53,
boolean debug) |
public static final String CAJOLED_MODULES
@Inject public CajaContentRewriter(CacheProvider cacheProvider, RequestPipeline requestPipeline, HtmlSerializer htmlSerializer, ProxyUriManager proxyUriManager)
public CajaContentRewriter.CajoledResult rewrite(Uri uri, String container, String mime, boolean es53, boolean debug)
public CajaContentRewriter.CajoledResult rewrite(Uri gadgetUri, String container, com.google.caja.parser.ParseTreeNode root, boolean es53, boolean debug)
public void rewrite(Gadget gadget, MutableContent mc)
GadgetRewriterrewrite in interface GadgetRewritergadget - Gadget to rewrite.mc - the content of the gadget to be manipulated.protected com.google.caja.plugin.UriPolicy makePolicy(Uri gadgetUri)
protected com.google.caja.plugin.PluginCompiler makePluginCompiler(com.google.caja.plugin.PluginMeta meta,
com.google.caja.reporting.MessageQueue mq)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.