public class Script extends ScriptDeprecated
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
disable(java.lang.String scriptname)
Disables the script with the given name
|
ApiResponse |
enable(java.lang.String scriptname)
Enables the script with the given name
|
ApiResponse |
listEngines()
Lists the script engines available
|
ApiResponse |
listScripts()
Lists the scripts available, with its engine, name, description, type and error state.
|
ApiResponse |
load(java.lang.String scriptname,
java.lang.String scripttype,
java.lang.String scriptengine,
java.lang.String filename,
java.lang.String scriptdescription,
java.nio.charset.Charset charset)
Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description, and a charset name to read the script (the charset name is required if the script is not in UTF-8, for example, in ISO-8859-1).
|
ApiResponse |
remove(java.lang.String scriptname)
Removes the script with the given name
|
ApiResponse |
runStandAloneScript(java.lang.String scriptname)
Runs the stand alone script with the give name
|
disable, enable, load, load, remove, runStandAloneScriptpublic Script(ClientApi api)
public ApiResponse listEngines() throws ClientApiException
ClientApiExceptionpublic ApiResponse listScripts() throws ClientApiException
ClientApiExceptionpublic ApiResponse enable(java.lang.String scriptname) throws ClientApiException
ClientApiExceptionpublic ApiResponse disable(java.lang.String scriptname) throws ClientApiException
ClientApiExceptionpublic ApiResponse load(java.lang.String scriptname, java.lang.String scripttype, java.lang.String scriptengine, java.lang.String filename, java.lang.String scriptdescription, java.nio.charset.Charset charset) throws ClientApiException
ClientApiExceptionpublic ApiResponse remove(java.lang.String scriptname) throws ClientApiException
ClientApiExceptionpublic ApiResponse runStandAloneScript(java.lang.String scriptname) throws ClientApiException
ClientApiException