org.apache.shindig.gadgets.rewrite
Class AccelResponseRewriterRegistry
java.lang.Object
org.apache.shindig.gadgets.rewrite.DefaultResponseRewriterRegistry
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccelResponseRewriterRegistry
@Inject
public AccelResponseRewriterRegistry(List<ResponseRewriter> rewriters,
GadgetHtmlParser htmlParser)
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.