MCPcopy Create free account
hub / github.com/zaproxy/zaproxy / isAddOn

Method isAddOn

zap/src/main/java/org/zaproxy/zap/control/AddOn.java:375–377  ·  view source on GitHub ↗

Tells whether or not the given file is a ZAP add-on. An add-on is a ZIP file that contains, at least, a #MANIFEST_FILE_NAME file. @param file the file to be checked @return true if the given file is an add-on, false otherwise. @since 2.6.0 @see #isAddOnFileName(String)

(Path file)

Source from the content-addressed store, hash-verified

373 * @see #isValidAddOn(Path)
374 */
375 public static boolean isAddOn(Path file) {
376 return isValidAddOn(file).getValidity() == ValidationResult.Validity.VALID;
377 }
378
379 /**
380 * Tells whether or not the given file is a ZAP add-on.

Calls 2

isValidAddOnMethod · 0.95
getValidityMethod · 0.80