org.apache.shindig.gadgets.rewrite
Class OsTemplateXmlLoaderRewriter

java.lang.Object
  extended by org.apache.shindig.gadgets.rewrite.DomWalker.Rewriter
      extended by org.apache.shindig.gadgets.rewrite.OsTemplateXmlLoaderRewriter
All Implemented Interfaces:
GadgetRewriter, ResponseRewriter

public class OsTemplateXmlLoaderRewriter
extends DomWalker.Rewriter

Rewrites the gadget to include template and xml information

Since:
2.0.0

Nested Class Summary
static class OsTemplateXmlLoaderRewriter.Converter
           
static class OsTemplateXmlLoaderRewriter.GadgetHtmlVisitor
           
 
Field Summary
static String OS_TEMPLATE_MIME
           
static String OS_TEMPLATES_FEATURE_NAME
           
 
Constructor Summary
OsTemplateXmlLoaderRewriter(OsTemplateXmlLoaderRewriter.Converter converter)
           
 
Method Summary
 boolean rewrite(HttpRequest request, HttpResponse original, MutableContent content)
           
 
Methods inherited from class org.apache.shindig.gadgets.rewrite.DomWalker.Rewriter
makeVisitors, rewrite, rewrite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OS_TEMPLATE_MIME

public static final String OS_TEMPLATE_MIME
See Also:
Constant Field Values

OS_TEMPLATES_FEATURE_NAME

public static final String OS_TEMPLATES_FEATURE_NAME
See Also:
Constant Field Values
Constructor Detail

OsTemplateXmlLoaderRewriter

@Inject
public OsTemplateXmlLoaderRewriter(OsTemplateXmlLoaderRewriter.Converter converter)
Method Detail

rewrite

public boolean rewrite(HttpRequest request,
                       HttpResponse original,
                       MutableContent content)
                throws RewritingException
Throws:
RewritingException


Copyright © 2007-2012. All Rights Reserved.