Class SimpleCertificateReportFacade
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractJaxbFacade<XmlSimpleCertificateReport>
eu.europa.esig.dss.simplecertificatereport.SimpleCertificateReportFacade
public class SimpleCertificateReportFacade extends AbstractJaxbFacade<XmlSimpleCertificateReport>
Contains methods to generate Certificate SimpleReport
-
Constructor Summary
Constructors Constructor Description SimpleCertificateReportFacade()
-
Method Summary
Modifier and Type Method Description String
generateHtmlBootstrap3Report(XmlSimpleCertificateReport simpleCertificateReport)
Generates a Bootstrap 3 Simple Certificate reportvoid
generateHtmlBootstrap3Report(XmlSimpleCertificateReport simpleCertificateReport, Result result)
Generates a Bootstrap 3 Simple Certificate reportString
generateHtmlBootstrap3Report(String marshalledSimpleCertificateReport)
Generates a Bootstrap 3 Simple Certificate reportvoid
generateHtmlBootstrap3Report(String marshalledSimpleCertificateReport, Result result)
Generates a Bootstrap 3 Simple Certificate reportString
generateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport)
Generates a Bootstrap 4 Simple Certificate reportvoid
generateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport, Result result)
Generates a Bootstrap 4 Simple Certificate reportString
generateHtmlReport(String marshalledSimpleCertificateReport)
Generates a Bootstrap 4 Simple Certificate reportvoid
generateHtmlReport(String marshalledSimpleCertificateReport, Result result)
Generates a Bootstrap 4 Simple Certificate reportvoid
generatePdfReport(XmlSimpleCertificateReport simpleCertificateReport, Result result)
Generates a PDF Detailed reportvoid
generatePdfReport(String marshalledSimpleCertificateReport, Result result)
Generates a PDF Detailed reportprotected JAXBContext
getJAXBContext()
This method returns the instance ofJAXBContext
which can handle the JAXB Objectprotected Schema
getSchema()
This method returns an instance ofSchema
with the loaded XML Schema(s).static SimpleCertificateReportFacade
newFacade()
Instantiates a newSimpleCertificateReportFacade
protected JAXBElement<XmlSimpleCertificateReport>
wrap(XmlSimpleCertificateReport simpleCertificateReport)
This method wraps/envelops the JAXB object with a "root" elementMethods inherited from class eu.europa.esig.dss.jaxb.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
Constructor Details
-
SimpleCertificateReportFacade
public SimpleCertificateReportFacade()
-
-
Method Details
-
newFacade
Instantiates a newSimpleCertificateReportFacade
- Returns:
SimpleCertificateReportFacade
-
getJAXBContext
Description copied from class:AbstractJaxbFacade
This method returns the instance ofJAXBContext
which can handle the JAXB Object- Specified by:
getJAXBContext
in classAbstractJaxbFacade<XmlSimpleCertificateReport>
- Returns:
- an instance of
JAXBContext
- Throws:
JAXBException
- if an error occurred in the initialization process
-
getSchema
Description copied from class:AbstractJaxbFacade
This method returns an instance ofSchema
with the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchema
in classAbstractJaxbFacade<XmlSimpleCertificateReport>
- Returns:
- an instance of
Schema
- Throws:
IOException
- if an I/O error occurred in the initialization processSAXException
- if a SAX error occurred in the initialization process
-
wrap
protected JAXBElement<XmlSimpleCertificateReport> wrap(XmlSimpleCertificateReport simpleCertificateReport)Description copied from class:AbstractJaxbFacade
This method wraps/envelops the JAXB object with a "root" element- Specified by:
wrap
in classAbstractJaxbFacade<XmlSimpleCertificateReport>
- Parameters:
simpleCertificateReport
- the JAXB object to be enveloped to marshall- Returns:
- the enveloped JAXB object, ready to be marshalled
-
generateHtmlReport
public String generateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 4 Simple Certificate report- Parameters:
simpleCertificateReport
-XmlSimpleCertificateReport
- Returns:
String
- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlReport
public void generateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 4 Simple Certificate report- Parameters:
simpleCertificateReport
-XmlSimpleCertificateReport
result
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlReport
public String generateHtmlReport(String marshalledSimpleCertificateReport) throws IOException, TransformerExceptionGenerates a Bootstrap 4 Simple Certificate report- Parameters:
marshalledSimpleCertificateReport
-String
marshalled report- Returns:
String
- Throws:
IOException
- if IOException occursTransformerException
- if TransformerException occurs
-
generateHtmlReport
public void generateHtmlReport(String marshalledSimpleCertificateReport, Result result) throws IOException, TransformerExceptionGenerates a Bootstrap 4 Simple Certificate report- Parameters:
marshalledSimpleCertificateReport
-String
marshalled reportresult
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occurs
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(XmlSimpleCertificateReport simpleCertificateReport) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Simple Certificate report- Parameters:
simpleCertificateReport
-XmlSimpleCertificateReport
- Returns:
String
- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(XmlSimpleCertificateReport simpleCertificateReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a Bootstrap 3 Simple Certificate report- Parameters:
simpleCertificateReport
-XmlSimpleCertificateReport
result
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generateHtmlBootstrap3Report
public String generateHtmlBootstrap3Report(String marshalledSimpleCertificateReport) throws IOException, TransformerExceptionGenerates a Bootstrap 3 Simple Certificate report- Parameters:
marshalledSimpleCertificateReport
-String
marshalled report- Returns:
String
- Throws:
IOException
- if IOException occursTransformerException
- if TransformerException occurs
-
generateHtmlBootstrap3Report
public void generateHtmlBootstrap3Report(String marshalledSimpleCertificateReport, Result result) throws IOException, TransformerExceptionGenerates a Bootstrap 3 Simple Certificate report- Parameters:
marshalledSimpleCertificateReport
-String
marshalled reportresult
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occurs
-
generatePdfReport
public void generatePdfReport(XmlSimpleCertificateReport simpleCertificateReport, Result result) throws IOException, TransformerException, JAXBExceptionGenerates a PDF Detailed report- Parameters:
simpleCertificateReport
-XmlSimpleCertificateReport
result
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occursJAXBException
- if an JAXBException occurs
-
generatePdfReport
public void generatePdfReport(String marshalledSimpleCertificateReport, Result result) throws IOException, TransformerExceptionGenerates a PDF Detailed report- Parameters:
marshalledSimpleCertificateReport
-String
marshalled reportresult
-Result
to write the report into- Throws:
IOException
- if an IOException occursTransformerException
- if an TransformerException occurs
-