public class XsltRenderer extends Object implements Renderer
Constructor and Description |
---|
XsltRenderer(String xsl) |
XsltRenderer(String template,
Driver driver,
DriverRequest originalRequest) |
Modifier and Type | Method and Description |
---|---|
void |
render(DriverRequest httpRequest,
String src,
Writer out)
Renders provided source and writes results to the output.
|
public XsltRenderer(String template, Driver driver, DriverRequest originalRequest) throws IOException, HttpErrorPage
template
- The path to the xsl template, relative to the context rootdriver
- driveroriginalRequest
- IOException
- If an error occurs while writing to the outputHttpErrorPage
public XsltRenderer(String xsl) throws IOException
xsl
- The xsl template to apply as a StringIOException
- If an error occurs while writing to the outputpublic void render(DriverRequest httpRequest, String src, Writer out) throws IOException
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.