@Extension public static class ZAPDriver.ZAPDriverDescriptorImpl extends hudson.model.Descriptor<ZAPDriver> implements Serializable
ZAPDriver. Used as a singleton. The class is marked as public so that it can be accessed from views.
See src/main/resources/com/github/jenkinsci/zaproxyplugin/ZAPDriver/*.jelly for the actual HTML fragment for the configuration screen.
| Constructor and Description |
|---|
ZAPDriverDescriptorImpl()
In order to load the persisted global configuration, you have to call load() in the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
hudson.util.FormValidation |
doCheckAuthScript(String authScript)
Todo
|
hudson.util.FormValidation |
doCheckExportreportBy(String exportreportBy)
Todo
|
hudson.util.FormValidation |
doCheckExportreportFor(String exportreportFor)
Todo
|
hudson.util.FormValidation |
doCheckExportreportReportDate(String exportreportReportDate)
Todo
|
hudson.util.FormValidation |
doCheckExportreportReportDescription(String exportreportReportDescription)
Todo
|
hudson.util.FormValidation |
doCheckExportreportReportVersion(String exportreportReportVersion)
Todo
|
hudson.util.FormValidation |
doCheckExportreportScanDate(String exportreportScanDate)
Todo
|
hudson.util.FormValidation |
doCheckExportreportScanVersion(String exportreportScanVersion)
Todo
|
hudson.util.FormValidation |
doCheckExportreportTitle(String exportreportTitle)
Todo
|
hudson.util.FormValidation |
doCheckIncludedURL(String includedURL)
Todo
|
hudson.util.FormValidation |
doCheckLoadSession(String loadSession)
Todo
|
hudson.util.FormValidation |
doCheckReportFilename(String reportFilename)
Performs on-the-fly validation of the form field 'reportFilename'.
|
hudson.util.FormValidation |
doCheckSessionFilename(String sessionFilename)
Performs on-the-fly validation of the form field 'sessionFilename'.
|
hudson.util.ListBoxModel |
doFillActiveScanPolicyItems(String zapSettingsDir)
List model to choose the policy file to use by ZAProxy scan.
|
hudson.util.ListBoxModel |
doFillAuthScriptItems(String zapSettingsDir)
List model to choose the authentication script file to use by ZAProxy scan.
|
hudson.util.ListBoxModel |
doFillLoadSessionItems()
List model to choose the ZAP session to use.
|
hudson.util.ListBoxModel |
doFillSelectedExportFormatsItems()
List model to choose the export report format
|
hudson.util.ListBoxModel |
doFillSelectedReportFormatsItems()
List model to choose the alert report format
|
hudson.util.ListBoxModel |
doFillToolUsedItems()
List model to choose the tool used (normally, it should be the ZAP tool).
|
List<String> |
getAllExportFormats() |
List<String> |
getAllFormats() |
String |
getDisplayName() |
Map<String,ZAPReport> |
getMapFormatReport() |
void |
setWorkspace(hudson.FilePath ws) |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic ZAPDriverDescriptorImpl()
public void setWorkspace(hudson.FilePath ws)
public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<ZAPDriver>public hudson.util.FormValidation doCheckReportFilename(@QueryParameter(value="reportFilename")
String reportFilename)
reportFilename - of type @QueryParameter String: This parameter receives the value that the user has typed.
Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
public hudson.util.FormValidation doCheckSessionFilename(@QueryParameter(value="sessionFilename")
String sessionFilename)
If the user wants to save session whereas a session is already loaded, the relative path to the saved session must be different from the relative path to the loaded session.
sessionFilename - of type @QueryParameter String: This parameter receives the value that the user has typed.
Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
public hudson.util.FormValidation doCheckLoadSession(@QueryParameter(value="loadSession")
String loadSession)
loadSession - public hudson.util.FormValidation doCheckIncludedURL(@QueryParameter(value="includedURL")
String includedURL)
includedURL - public hudson.util.FormValidation doCheckAuthScript(@QueryParameter(value="authScript")
String authScript)
authScript - public hudson.util.FormValidation doCheckExportreportTitle(@QueryParameter(value="exportreportTitle")
String exportreportTitle)
exportreportTitle - public hudson.util.FormValidation doCheckExportreportBy(@QueryParameter(value="exportreportBy")
String exportreportBy)
exportreportBy - public hudson.util.FormValidation doCheckExportreportFor(@QueryParameter(value="exportreportFor")
String exportreportFor)
exportreportFor - public hudson.util.FormValidation doCheckExportreportScanDate(@QueryParameter(value="exportreportScanDate")
String exportreportScanDate)
exportreportScanDate - public hudson.util.FormValidation doCheckExportreportReportDate(@QueryParameter(value="exportreportReportDate")
String exportreportReportDate)
exportreportReportDate - public hudson.util.FormValidation doCheckExportreportScanVersion(@QueryParameter(value="exportreportScanVersion")
String exportreportScanVersion)
exportreportScanVersion - public hudson.util.FormValidation doCheckExportreportReportVersion(@QueryParameter(value="exportreportReportVersion")
String exportreportReportVersion)
exportreportReportVersion - public hudson.util.FormValidation doCheckExportreportReportDescription(@QueryParameter(value="exportreportReportDescription")
String exportreportReportDescription)
exportreportReportDescription - public hudson.util.ListBoxModel doFillSelectedReportFormatsItems()
ListBoxModelpublic hudson.util.ListBoxModel doFillSelectedExportFormatsItems()
ListBoxModelpublic hudson.util.ListBoxModel doFillToolUsedItems()
ListBoxModelpublic hudson.util.ListBoxModel doFillActiveScanPolicyItems(@QueryParameter
String zapSettingsDir)
zapSettingsDir - of type @QueryParameter String: A string that represents an absolute path to the directory that ZAP uses.ListBoxModel. It can be empty if zapSettingsDir doesn't contain any policy file.public hudson.util.ListBoxModel doFillAuthScriptItems(@QueryParameter
String zapSettingsDir)
zapSettingsDir - of type @QueryParameter String: A string that represents an absolute path to the directory that ZAP uses.ListBoxModel. It can be empty if zapSettingsDir doesn't contain any policy file.public hudson.util.ListBoxModel doFillLoadSessionItems()
throws IOException,
InterruptedException
ListBoxModel. It can be empty if the workspace doesn't contain any ZAP sessions.InterruptedExceptionIOExceptionCopyright © 2016–2017. All rights reserved.