Class HTMLReportRenderer
- java.lang.Object
-
- org.opennms.reporting.availability.render.HTMLReportRenderer
-
- All Implemented Interfaces:
ReportRenderer
public class HTMLReportRenderer extends Object implements ReportRenderer
HTMLReportRenderer will transform its input XML into HTML using the supplied XSLT resource.- Author:
- Jonathan Sartin
-
-
Constructor Summary
Constructors Constructor Description HTMLReportRenderer()
Constructor for HTMLReportRenderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseDir()
getBaseDirString
getOutputFileName()
getOutputFileNamevoid
render()
rendervoid
render(InputStream inputStream, OutputStream outputStream, org.springframework.core.io.Resource xsltResource)
rendervoid
render(Reader in, OutputStream out, Reader xslt)
rendervoid
render(String inputFileName, OutputStream outputStream, org.springframework.core.io.Resource xsltResource)
rendervoid
render(String inputFileName, String outputFileName, org.springframework.core.io.Resource xsltResource)
renderbyte[]
render(String inputFileName, org.springframework.core.io.Resource xsltResource)
rendervoid
setBaseDir(String baseDir)
setBaseDirvoid
setInputFileName(String inputFileName)
setInputFileNamevoid
setOutputFileName(String outputFileName)
setOutputFileNamevoid
setXsltResource(org.springframework.core.io.Resource xsltResource)
setXsltResource
-
-
-
Method Detail
-
render
public void render() throws ReportRenderException
render
- Specified by:
render
in interfaceReportRenderer
- Throws:
ReportRenderException
- if any.
-
render
public byte[] render(String inputFileName, org.springframework.core.io.Resource xsltResource) throws ReportRenderException
render
- Specified by:
render
in interfaceReportRenderer
- Parameters:
inputFileName
- aString
object.xsltResource
- aResource
object.- Returns:
- an array of byte.
- Throws:
ReportRenderException
- if any.
-
render
public void render(String inputFileName, OutputStream outputStream, org.springframework.core.io.Resource xsltResource) throws ReportRenderException
render
- Specified by:
render
in interfaceReportRenderer
- Parameters:
inputFileName
- aString
object.outputStream
- aOutputStream
object.xsltResource
- aResource
object.- Throws:
ReportRenderException
- if any.
-
render
public void render(InputStream inputStream, OutputStream outputStream, org.springframework.core.io.Resource xsltResource) throws ReportRenderException
render
- Specified by:
render
in interfaceReportRenderer
- Parameters:
inputStream
- aInputStream
object.outputStream
- aOutputStream
object.xsltResource
- aResource
object.- Throws:
ReportRenderException
- if any.
-
render
public void render(String inputFileName, String outputFileName, org.springframework.core.io.Resource xsltResource) throws ReportRenderException
render
- Specified by:
render
in interfaceReportRenderer
- Parameters:
inputFileName
- aString
object.outputFileName
- aString
object.xsltResource
- aResource
object.- Throws:
ReportRenderException
- if any.
-
render
public void render(Reader in, OutputStream out, Reader xslt) throws ReportRenderException
render
- Parameters:
in
- aReader
object.out
- aOutputStream
object.xslt
- aReader
object.- Throws:
ReportRenderException
- if any.
-
setXsltResource
public void setXsltResource(org.springframework.core.io.Resource xsltResource)
setXsltResource
- Specified by:
setXsltResource
in interfaceReportRenderer
- Parameters:
xsltResource
- aResource
object.
-
setOutputFileName
public void setOutputFileName(String outputFileName)
setOutputFileName
- Specified by:
setOutputFileName
in interfaceReportRenderer
- Parameters:
outputFileName
- aString
object.
-
getOutputFileName
public String getOutputFileName()
getOutputFileName
- Specified by:
getOutputFileName
in interfaceReportRenderer
- Returns:
- a
String
object.
-
setInputFileName
public void setInputFileName(String inputFileName)
setInputFileName
- Specified by:
setInputFileName
in interfaceReportRenderer
- Parameters:
inputFileName
- aString
object.
-
setBaseDir
public void setBaseDir(String baseDir)
setBaseDir
- Specified by:
setBaseDir
in interfaceReportRenderer
- Parameters:
baseDir
- aString
object.
-
getBaseDir
public String getBaseDir()
getBaseDir
- Specified by:
getBaseDir
in interfaceReportRenderer
- Returns:
- a
String
object.
-
-