MCPcopy Index your code
hub / github.com/zaproxy/zaproxy / isAddOnFileName

Method isAddOnFileName

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

Tells whether or not the given file name matches the name of a ZAP add-on. The file name must have as file extension #FILE_EXTENSION. @param fileName the name of the file to check @return true if the given file name is the name of an add-on, false otherwise. @since 2

(String fileName)

Source from the content-addressed store, hash-verified

355 * @since 2.6.0
356 */
357 public static boolean isAddOnFileName(String fileName) {
358 if (fileName == null) {
359 return false;
360 }
361 return fileName.toLowerCase(Locale.ROOT).endsWith(FILE_EXTENSION);
362 }
363
364 /**
365 * Tells whether or not the given file is a ZAP add-on.

Calls

no outgoing calls