org.apache.shindig.gadgets.rewrite
Class AccelResponseRewriterRegistry

java.lang.Object
  extended by org.apache.shindig.gadgets.rewrite.DefaultResponseRewriterRegistry
      extended by org.apache.shindig.gadgets.rewrite.AccelResponseRewriterRegistry
All Implemented Interfaces:
ResponseRewriterRegistry

public class AccelResponseRewriterRegistry
extends DefaultResponseRewriterRegistry

Response rewriter registry for accel servlet. Encapsulates response rewriters that should be applied for Accel servlet.

Since:
2.0.0

Field Summary
 
Fields inherited from class org.apache.shindig.gadgets.rewrite.DefaultResponseRewriterRegistry
htmlParser, rewriters
 
Constructor Summary
AccelResponseRewriterRegistry(List<ResponseRewriter> rewriters, GadgetHtmlParser htmlParser)
           
 
Method Summary
 HttpResponse rewriteHttpResponse(HttpRequest req, HttpResponse resp)
          Rewrites an HttpResponse object with the given request as context, using the registered rewriters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccelResponseRewriterRegistry

@Inject
public AccelResponseRewriterRegistry(List<ResponseRewriter> rewriters,
                                            GadgetHtmlParser htmlParser)
Method Detail

rewriteHttpResponse

public HttpResponse rewriteHttpResponse(HttpRequest req,
                                        HttpResponse resp)
                                 throws RewritingException
Rewrites an HttpResponse object with the given request as context, using the registered rewriters.

Specified by:
rewriteHttpResponse in interface ResponseRewriterRegistry
Overrides:
rewriteHttpResponse in class DefaultResponseRewriterRegistry
Parameters:
req - Request object for context.
resp - Original response object.
Returns:
Rewritten response object, or resp if not modified.
Throws:
RewritingException


Copyright © 2007-2012. All Rights Reserved.