Package org.apache.shindig.gadgets.rewrite

Interface Summary
DomWalker.Visitor Implemented by classes that do actual manipulation of the DOM while DomWalker.ContentVisitor walks it.
GadgetRewriter Interface for rewriters that modify gadget content.
ResponseRewriter Base interface used by response rewriter implementations.
ResponseRewriterRegistry Performs rewriting operations by invoking one or more ResponseRewriters.
 

Class Summary
AbsolutePathReferenceRewriter Rewriter that converts all url's to absolute.
AbsolutePathReferenceVisitor Visitor that resolves relative paths relative to the base tag (only if present) / current page url and marks urls as absolute.
AccelResponseRewriterRegistry Response rewriter registry for accel servlet.
BaseTagRemoverRewriter Simple rewriter that deletes the base tag from the html document.
CaptureRewriter Utility rewriter for testing.
ConcatVisitor DOM mutator that concatenates resources using the concat servlet
ConcatVisitor.Css  
ConcatVisitor.Js  
ContentRewriterFeature Parser for the "content-rewrite" feature.
ContentRewriterFeature.Config  
ContentRewriterFeature.DefaultConfig  
ContentRewriterFeature.Factory Factory for content rewriter features.
ContentTypeCharsetRemoverRewriter Removes charset information from <meta http-equip="Content-Type"%gt; tags
ContentTypeCharsetRemoverVisitor Removes charset information from <meta http-equip="Content-Type">
CssResponseRewriter Rewrite links to referenced content in a stylesheet
CssResponseRewriter.UriMaker  
DefaultResponseRewriterRegistry Basic registry -- just iterates over rewriters and invokes them sequentially.
DomWalker Framework-in-a-framework facilitating the common Visitor case in which a DOM tree is walked in order to manipulate it.
DomWalker.Rewriter Rewriter that traverses the DOM, passing each node to its list of Visitor instances in order.
MutableContent Object that maintains a String representation of arbitrary contents and a consistent view of those contents as an HTML parse tree.
OsTemplateXmlLoaderRewriter Rewrites the gadget to include template and xml information
OsTemplateXmlLoaderRewriter.Converter  
OsTemplateXmlLoaderRewriter.GadgetHtmlVisitor  
PipelineDataGadgetRewriter ContentRewriter that resolves opensocial-data elements on the server.
ProxyingContentRewriter Rewrites gadget content to force resources through the /proxy endpoint.
ProxyingVisitor Simple visitor that, when plugged into a DomWalker, rewrites resource links to proxied versions of the same.
ResourceMutateVisitor Abstract visitor that walks over html tags as specified by resourceTags and prepares list of html tag nodes whose uri attributes can be mutated.
RewriteModule Guice bindings for the rewrite package.
RewriterUtils Various utility functions used by rewriters
ScriptConcatContentRewriter REwrites scripts.
StyleAdjacencyContentRewriter Merges adjacent style tags.
StyleAdjacencyVisitor Visitor that pulls all stylesheet nodes in a document to head, in the order they were found in the document.
StyleConcatContentRewriter Merges adjacent styles
StyleTagExtractorContentRewriter Extracts style tags
StyleTagExtractorVisitor Visits nodes in the dom extracting style tags.
StyleTagProxyEmbeddedUrlsRewriter Rewriter that replaces urls (@import + background) in <style> ...
StyleTagProxyEmbeddedUrlsVisitor Visitor that replaces urls (@import + background) in <style> ...
TemplateRewriter This ContentRewriter uses a TemplateProcessor to replace os-template tag contents of a gadget spec with their rendered equivalents.
 

Enum Summary
AbsolutePathReferenceVisitor.Tags  
ContentRewriterFeature.PatternOptions  
DomWalker.Visitor.VisitStatus Returned by the visit(Gadget, Node) method, signaling: BYPASS = Visitor doesn't care about the node.
ResourceMutateVisitor.Tags Enum for resource tags and associated attributes that should be mutated.
 

Exception Summary
RewritingException Exceptions thrown during content rewriting.
 



Copyright © 2007-2012. All Rights Reserved.