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)
Loads a script into ZAP from the given local file, with the given name, type and engine, optionally with a description
|
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, remove, runStandAloneScript
public Script(ClientApi api)
public ApiResponse listEngines() throws ClientApiException
ClientApiException
public ApiResponse listScripts() throws ClientApiException
ClientApiException
public ApiResponse enable(java.lang.String scriptname) throws ClientApiException
ClientApiException
public ApiResponse disable(java.lang.String scriptname) throws ClientApiException
ClientApiException
public ApiResponse load(java.lang.String scriptname, java.lang.String scripttype, java.lang.String scriptengine, java.lang.String filename, java.lang.String scriptdescription) throws ClientApiException
ClientApiException
public ApiResponse remove(java.lang.String scriptname) throws ClientApiException
ClientApiException
public ApiResponse runStandAloneScript(java.lang.String scriptname) throws ClientApiException
ClientApiException