public class DefaultResponseRewriterRegistry extends Object implements ResponseRewriterRegistry
| Modifier and Type | Field and Description |
|---|---|
protected GadgetHtmlParser |
htmlParser |
protected List<ResponseRewriter> |
rewriters |
| Constructor and Description |
|---|
DefaultResponseRewriterRegistry(List<ResponseRewriter> rewriters,
GadgetHtmlParser htmlParser) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
rewriteHttpResponse(HttpRequest req,
HttpResponse resp)
Rewrites an
HttpResponse object with the given request as context,
using the registered rewriters. |
protected final List<ResponseRewriter> rewriters
protected final GadgetHtmlParser htmlParser
@Inject public DefaultResponseRewriterRegistry(List<ResponseRewriter> rewriters, GadgetHtmlParser htmlParser)
public HttpResponse rewriteHttpResponse(HttpRequest req, HttpResponse resp) throws RewritingException
HttpResponse object with the given request as context,
using the registered rewriters.rewriteHttpResponse in interface ResponseRewriterRegistryreq - Request object for context.resp - Original response object.RewritingExceptionCopyright © 2007-2012. All Rights Reserved.