Class HTMLReportRenderer
- java.lang.Object
-
- org.opennms.reporting.availability.render.HTMLReportRenderer
-
- All Implemented Interfaces:
ReportRenderer
public class HTMLReportRenderer extends java.lang.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 java.lang.String
getBaseDir()
getBaseDirjava.lang.String
getOutputFileName()
getOutputFileNamevoid
render()
rendervoid
render(java.io.InputStream inputStream, java.io.OutputStream outputStream, org.springframework.core.io.Resource xsltResource)
rendervoid
render(java.io.Reader in, java.io.OutputStream out, java.io.Reader xslt)
rendervoid
render(java.lang.String inputFileName, java.io.OutputStream outputStream, org.springframework.core.io.Resource xsltResource)
rendervoid
render(java.lang.String inputFileName, java.lang.String outputFileName, org.springframework.core.io.Resource xsltResource)
renderbyte[]
render(java.lang.String inputFileName, org.springframework.core.io.Resource xsltResource)
rendervoid
setBaseDir(java.lang.String baseDir)
setBaseDirvoid
setInputFileName(java.lang.String inputFileName)
setInputFileNamevoid
setOutputFileName(java.lang.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(java.lang.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(java.lang.String inputFileName, java.io.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(java.io.InputStream inputStream, java.io.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(java.lang.String inputFileName, java.lang.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(java.io.Reader in, java.io.OutputStream out, java.io.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(java.lang.String outputFileName)
setOutputFileName
- Specified by:
setOutputFileName
in interfaceReportRenderer
- Parameters:
outputFileName
- aString
object.
-
getOutputFileName
public java.lang.String getOutputFileName()
getOutputFileName
- Specified by:
getOutputFileName
in interfaceReportRenderer
- Returns:
- a
String
object.
-
setInputFileName
public void setInputFileName(java.lang.String inputFileName)
setInputFileName
- Specified by:
setInputFileName
in interfaceReportRenderer
- Parameters:
inputFileName
- aString
object.
-
setBaseDir
public void setBaseDir(java.lang.String baseDir)
setBaseDir
- Specified by:
setBaseDir
in interfaceReportRenderer
- Parameters:
baseDir
- aString
object.
-
getBaseDir
public java.lang.String getBaseDir()
getBaseDir
- Specified by:
getBaseDir
in interfaceReportRenderer
- Returns:
- a
String
object.
-
-