Search in sources :

Example 6 with RegexAutoTagScanner

use of org.zaproxy.zap.extension.pscan.scanner.RegexAutoTagScanner in project zaproxy by zaproxy.

the class DialogAddAutoTagScanner method validateName.

protected boolean validateName(String name) {
    for (RegexAutoTagScanner s : scanners) {
        if (name.equals(s.getName())) {
            JOptionPane.showMessageDialog(this, TEXT_DISPLAY_NAME_REPEATED_DIALOG, TITLE_DISPLAY_NAME_REPEATED_DIALOG, JOptionPane.INFORMATION_MESSAGE);
            getNameTextField().requestFocusInWindow();
            return false;
        }
    }
    return true;
}
Also used : RegexAutoTagScanner(org.zaproxy.zap.extension.pscan.scanner.RegexAutoTagScanner)

Aggregations

RegexAutoTagScanner (org.zaproxy.zap.extension.pscan.scanner.RegexAutoTagScanner)6 HierarchicalConfiguration (org.apache.commons.configuration.HierarchicalConfiguration)2 MalformedURLException (java.net.MalformedURLException)1 ArrayList (java.util.ArrayList)1 ConversionException (org.apache.commons.configuration.ConversionException)1 FileConfiguration (org.apache.commons.configuration.FileConfiguration)1