public class Script extends ScriptDeprecated
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
clearGlobalVar(java.lang.String varkey)
Clears the global variable with the given key.
|
ApiResponse |
clearGlobalVars()
Clears the global variables.
|
ApiResponse |
clearScriptVar(java.lang.String scriptname,
java.lang.String varkey)
Clears the variable with the given key of the given script.
|
ApiResponse |
clearScriptVars(java.lang.String scriptname)
Clears the variables of the given script.
|
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 |
globalVar(java.lang.String varkey)
Gets the value of the global variable with the given key.
|
ApiResponse |
globalVars()
Gets all the global variables (key/value pairs).
|
ApiResponse |
listEngines()
Lists the script engines available
|
ApiResponse |
listScripts()
Lists the scripts available, with its engine, name, description, type and error state.
|
ApiResponse |
listTypes()
Lists the script types available.
|
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 given name
|
ApiResponse |
scriptVar(java.lang.String scriptname,
java.lang.String varkey)
Gets the value of the variable with the given key for the given script.
|
ApiResponse |
scriptVars(java.lang.String scriptname)
Gets all the variables (key/value pairs) of the given script.
|
ApiResponse |
setGlobalVar(java.lang.String varkey,
java.lang.String varvalue)
Sets the value of the global variable with the given key.
|
ApiResponse |
setScriptVar(java.lang.String scriptname,
java.lang.String varkey,
java.lang.String varvalue)
Sets the value of the variable with the given key of the given script.
|
disable, enable, load, load, remove, runStandAloneScriptpublic Script(ClientApi api)
public ApiResponse listEngines() throws ClientApiException
ClientApiExceptionpublic ApiResponse listTypes() throws ClientApiException
ClientApiExceptionpublic ApiResponse listScripts() throws ClientApiException
ClientApiExceptionpublic ApiResponse globalVar(java.lang.String varkey) throws ClientApiException
ClientApiExceptionpublic ApiResponse globalVars() throws ClientApiException
ClientApiExceptionpublic ApiResponse scriptVar(java.lang.String scriptname, java.lang.String varkey) throws ClientApiException
ClientApiExceptionpublic ApiResponse scriptVars(java.lang.String scriptname) 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
ClientApiExceptionpublic ApiResponse clearGlobalVar(java.lang.String varkey) throws ClientApiException
ClientApiExceptionpublic ApiResponse clearGlobalVars() throws ClientApiException
ClientApiExceptionpublic ApiResponse clearScriptVar(java.lang.String scriptname, java.lang.String varkey) throws ClientApiException
ClientApiExceptionpublic ApiResponse clearScriptVars(java.lang.String scriptname) throws ClientApiException
ClientApiExceptionpublic ApiResponse setScriptVar(java.lang.String scriptname, java.lang.String varkey, java.lang.String varvalue) throws ClientApiException
ClientApiExceptionpublic ApiResponse setGlobalVar(java.lang.String varkey, java.lang.String varvalue) throws ClientApiException
ClientApiException