Class SimpleCertificateReportFacade
- java.lang.Object
-
- eu.europa.esig.dss.jaxb.parsers.AbstractJaxbFacade<XmlSimpleCertificateReport>
-
- eu.europa.esig.dss.simplecertificatereport.SimpleCertificateReportFacade
-
public class SimpleCertificateReportFacade extends AbstractJaxbFacade<XmlSimpleCertificateReport>
-
-
Constructor Summary
Constructors Constructor Description SimpleCertificateReportFacade()
-
Method Summary
Modifier and Type Method Description StringgenerateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport)voidgenerateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport, Result result)StringgenerateHtmlReport(String marshalledSimpleCertificateReport)voidgenerateHtmlReport(String marshalledSimpleCertificateReport, Result result)protected JAXBContextgetJAXBContext()This method returns the instance ofJAXBContextwhich can handle the JAXB Objectprotected SchemagetSchema()This method returns an instance ofSchemawith the loaded XML Schema(s).static SimpleCertificateReportFacadenewFacade()protected JAXBElement<XmlSimpleCertificateReport>wrap(XmlSimpleCertificateReport simpleCertificateReport)This method wraps/envelops the JAXB object with a "root" element-
Methods inherited from class eu.europa.esig.dss.jaxb.parsers.AbstractJaxbFacade
getMarshaller, getUnmarshaller, marshall, marshall, marshall, marshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall, unmarshall
-
-
-
-
Method Detail
-
newFacade
public static SimpleCertificateReportFacade newFacade()
-
getJAXBContext
protected JAXBContext getJAXBContext() throws JAXBException
Description copied from class:AbstractJaxbFacadeThis method returns the instance ofJAXBContextwhich can handle the JAXB Object- Specified by:
getJAXBContextin classAbstractJaxbFacade<XmlSimpleCertificateReport>- Returns:
- an instance of
JAXBContext - Throws:
JAXBException- if an error occurred in the initialization process
-
getSchema
protected Schema getSchema() throws IOException, SAXException
Description copied from class:AbstractJaxbFacadeThis method returns an instance ofSchemawith the loaded XML Schema(s). The XSD(s) allows to validate the JAXB Object.- Specified by:
getSchemain 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:AbstractJaxbFacadeThis method wraps/envelops the JAXB object with a "root" element- Specified by:
wrapin 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, JAXBException
-
generateHtmlReport
public void generateHtmlReport(XmlSimpleCertificateReport simpleCertificateReport, Result result) throws IOException, TransformerException, JAXBException
-
generateHtmlReport
public String generateHtmlReport(String marshalledSimpleCertificateReport) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
generateHtmlReport
public void generateHtmlReport(String marshalledSimpleCertificateReport, Result result) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
-