Search in sources :

Example 1 with XmlReporterExtension

use of org.zaproxy.zap.extension.XmlReporterExtension in project zaproxy by zaproxy.

the class ReportLastScan method getExtensionsXML.

public StringBuilder getExtensionsXML(SiteNode site) {
    StringBuilder extensionXml = new StringBuilder();
    ExtensionLoader loader = Control.getSingleton().getExtensionLoader();
    int extensionCount = loader.getExtensionCount();
    for (int i = 0; i < extensionCount; i++) {
        Extension extension = loader.getExtension(i);
        if (extension instanceof XmlReporterExtension) {
            extensionXml.append(((XmlReporterExtension) extension).getXml(site));
        }
    }
    return extensionXml;
}
Also used : XmlReporterExtension(org.zaproxy.zap.extension.XmlReporterExtension) Extension(org.parosproxy.paros.extension.Extension) XmlReporterExtension(org.zaproxy.zap.extension.XmlReporterExtension) ExtensionLoader(org.parosproxy.paros.extension.ExtensionLoader)

Aggregations

Extension (org.parosproxy.paros.extension.Extension)1 ExtensionLoader (org.parosproxy.paros.extension.ExtensionLoader)1 XmlReporterExtension (org.zaproxy.zap.extension.XmlReporterExtension)1