Package org.zaproxy.zap.model

Examples of org.zaproxy.zap.model.Vulnerability


        alertEditName.setModel(nameListModel);
        alertEditName.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            if ("comboBoxChanged".equals(e.getActionCommand())) {
              Vulnerability v = getVulnerability((String)alertEditName.getSelectedItem());
              if (v != null) {
                if (v.getDescription() != null && v.getDescription().length() > 0) {
                  alertDescription.setText(v.getDescription());
                }
                if (v.getSolution() != null && v.getSolution().length() > 0) {
                  alertSolution.setText(v.getSolution());
                }
                if (v.getReferences() != null) {
                  StringBuffer sb = new StringBuffer();
                  for (String ref : v.getReferences()) {
                    sb.append(ref);
                    sb.append("\n");
                  }
                  alertReference.setText(sb.toString());
                }
View Full Code Here

TOP

Related Classes of org.zaproxy.zap.model.Vulnerability

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.