public class ResourceFixupRenderer extends Object implements Renderer
Constructor and Description |
---|
ResourceFixupRenderer(String baseUrl,
String requestUrl,
UrlRewriter urlRewriter,
String visibleBaseUrl,
boolean absolute)
Creates a renderer which fixes urls.
|
Modifier and Type | Method and Description |
---|---|
void |
render(DriverRequest httpRequest,
String src,
Writer out)
Renders provided source and writes results to the output.
|
public ResourceFixupRenderer(String baseUrl, String requestUrl, UrlRewriter urlRewriter, String visibleBaseUrl, boolean absolute)
baseUrl
- Base url (same as configured in provider).requestUrl
- Page as used in tag lib or using APIurlRewriter
- The url rewriter for this providervisibleBaseUrl
- The base url as seen from the clientabsolute
- Should the rewritten urls contain the scheme host and portpublic void render(DriverRequest httpRequest, String src, Writer out) throws IOException
Renderer
render
in interface Renderer
httpRequest
- request received by esigate.src
- source to be renderedout
- output destination. This writer is not thread-safe, use proper synchronization if writing output from
multiple threads.IOException
Copyright © 2008–2018. All rights reserved.