@Extension public static class ZAProxy.ZAProxyDescriptorImpl extends hudson.model.Descriptor<ZAProxy>
ZAProxy. Used as a singleton.
The class is marked as public so that it can be accessed from views.
See src/main/resources/fr/novia/zaproxyplugin/ZAProxy/*.jelly for the actual HTML fragment for the configuration screen.
| Constructor and Description |
|---|
ZAProxy.ZAProxyDescriptorImpl()
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 |
doCheckFilenameReports(String filenameReports)
Performs on-the-fly validation of the form field 'filenameReports'.
|
hudson.util.FormValidation |
doCheckFilenameSaveSession(String filenameLoadSession,
String filenameSaveSession)
Performs on-the-fly validation of the form field 'filenameSaveSession'.
|
hudson.util.ListBoxModel |
doFillChosenFormatsItems()
List model to choose the alert report format
|
hudson.util.ListBoxModel |
doFillChosenPolicyItems(String zapDefaultDir)
List model to choose the policy file to use by ZAProxy scan.
|
hudson.util.ListBoxModel |
doFillFilenameLoadSessionItems(String workspace)
List model to choose the ZAP session to use.
|
hudson.util.ListBoxModel |
doFillToolUsedItems()
List model to choose the tool used (normally, it should be the ZAProxy tool)
|
List<String> |
getAllFormats() |
String |
getDisplayName() |
Map<String,ZAPreport> |
getMapFormatReport() |
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 ZAProxy.ZAProxyDescriptorImpl()
public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<ZAProxy>public hudson.util.FormValidation doCheckFilenameReports(@QueryParameter(value="filenameReports")
String filenameReports)
throws IOException,
javax.servlet.ServletException
filenameReports - 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.
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.FormValidation doCheckFilenameSaveSession(@QueryParameter(value="filenameLoadSession")
String filenameLoadSession,
@QueryParameter(value="filenameSaveSession")
String filenameSaveSession)
throws IOException,
javax.servlet.ServletException
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.
filenameLoadSession - Parameter to compare with filenameSaveSession.filenameSaveSession - 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.
IOExceptionjavax.servlet.ServletExceptionpublic hudson.util.ListBoxModel doFillChosenFormatsItems()
ListBoxModelpublic hudson.util.ListBoxModel doFillToolUsedItems()
ListBoxModelpublic hudson.util.ListBoxModel doFillChosenPolicyItems(@QueryParameter
String zapDefaultDir)
zapDefaultDir - A string that represents an absolute path to the directory that ZAP uses.ListBoxModel. It can be empty if zapDefaultDir doesn't contain any policy file.public hudson.util.ListBoxModel doFillFilenameLoadSessionItems(@QueryParameter
String workspace)
workspace - the location to load ZAP sessions (the workspace of the current job)ListBoxModel. It can be empty if the workspace doesn't contain any ZAP sessions.Copyright © 2004-2015. All Rights Reserved.