Package org.zaproxy.clientapi.gen
Class Core
- java.lang.Object
-
- org.zaproxy.clientapi.gen.deprecated.CoreDeprecated
-
- org.zaproxy.clientapi.gen.Core
-
public class Core extends CoreDeprecated
This file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApiResponse
accessUrl(java.lang.String url, java.lang.String followredirects)
Convenient and simple action to access a URL, optionally following redirections.ApiResponse
addProxyChainExcludedDomain(java.lang.String value, java.lang.String isregex, java.lang.String isenabled)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
alert(java.lang.String id)
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.ApiResponse
alerts(java.lang.String baseurl, java.lang.String start, java.lang.String count, java.lang.String riskid)
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.ApiResponse
alertsSummary(java.lang.String baseurl)
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.ApiResponse
childNodes(java.lang.String url)
Gets the child nodes underneath the specified URL in the Sites treeApiResponse
clearExcludedFromProxy()
Clears the regexes of URLs excluded from the local proxies.ApiResponse
deleteAlert(java.lang.String id)
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.ApiResponse
deleteAllAlerts()
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.ApiResponse
deleteSiteNode(java.lang.String url, java.lang.String method, java.lang.String postdata)
Deletes the site node found in the Sites Tree on the basis of the URL, HTTP method, and post data (if applicable and specified).ApiResponse
disableAllProxyChainExcludedDomains()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
disableClientCertificate()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
enableAllProxyChainExcludedDomains()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
enablePKCS12ClientCertificate(java.lang.String filepath, java.lang.String password, java.lang.String index)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
excludedFromProxy()
Gets the regular expressions, applied to URLs, to exclude from the local proxies.ApiResponse
excludeFromProxy(java.lang.String regex)
Adds a regex of URLs that should be excluded from the local proxies.ApiResponse
generateRootCA()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
homeDirectory()
Deprecated.ApiResponse
hosts()
Gets the name of the hosts accessed through/by ZAPbyte[]
htmlreport()
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.byte[]
jsonreport()
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.ApiResponse
loadSession(java.lang.String name)
Loads the session with the given name.byte[]
mdreport()
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.ApiResponse
message(java.lang.String id)
Gets the HTTP message with the given ID.byte[]
messageHar(java.lang.String id)
Deprecated.Use the API endpoints in the 'exim' add-on instead.ApiResponse
messages(java.lang.String baseurl, java.lang.String start, java.lang.String count)
Gets the HTTP messages sent by ZAP, request and response, optionally filtered by URL and paginated with 'start' position and 'count' of messagesApiResponse
messagesById(java.lang.String ids)
Gets the HTTP messages with the given IDs.byte[]
messagesHar(java.lang.String baseurl, java.lang.String start, java.lang.String count)
Deprecated.Use the API endpoints in the 'exim' add-on instead.byte[]
messagesHarById(java.lang.String ids)
Deprecated.Use the API endpoints in the 'exim' add-on instead.ApiResponse
mode()
Gets the modeApiResponse
modifyProxyChainExcludedDomain(java.lang.String idx, java.lang.String value, java.lang.String isregex, java.lang.String isenabled)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
newSession(java.lang.String name, java.lang.String overwrite)
Creates a new session, optionally overwriting existing files.ApiResponse
numberOfAlerts(java.lang.String baseurl, java.lang.String riskid)
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.ApiResponse
numberOfMessages(java.lang.String baseurl)
Gets the number of messages, optionally filtering by URLApiResponse
optionAlertOverridesFilePath()
Gets the path to the file with alert overrides.ApiResponse
optionDefaultUserAgent()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionDnsTtlSuccessfulQueries()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionHttpState()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionHttpStateEnabled()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionMaximumAlertInstances()
Gets the maximum number of alert instances to include in a report.ApiResponse
optionMergeRelatedAlerts()
Gets whether or not related alerts will be merged in any reports generated.ApiResponse
optionProxyChainName()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionProxyChainPassword()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionProxyChainPort()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionProxyChainPrompt()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionProxyChainRealm()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionProxyChainSkipName()
Deprecated.ApiResponse
optionProxyChainUserName()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionProxyExcludedDomains()
Deprecated.ApiResponse
optionProxyExcludedDomainsEnabled()
Deprecated.ApiResponse
optionSingleCookieRequestHeader()
Deprecated.Option no longer in effective use.ApiResponse
optionTimeoutInSecs()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionUseProxyChain()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionUseProxyChainAuth()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
optionUseSocksProxy()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
proxyChainExcludedDomains()
Deprecated.Use the API endpoints in the 'network' component instead.byte[]
proxypac()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
removeProxyChainExcludedDomain(java.lang.String idx)
Deprecated.Use the API endpoints in the 'network' component instead.byte[]
rootcert()
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
runGarbageCollection()
ApiResponse
saveSession(java.lang.String name, java.lang.String overwrite)
Saves the session.byte[]
sendHarRequest(java.lang.String request, java.lang.String followredirects)
Deprecated.Use the API endpoints in the 'exim' add-on instead.ApiResponse
sendRequest(java.lang.String request, java.lang.String followredirects)
Sends the HTTP request, optionally following redirections.ApiResponse
sessionLocation()
Gets the location of the current session fileApiResponse
setHomeDirectory(java.lang.String dir)
ApiResponse
setMode(java.lang.String mode)
Sets the mode, which may be one of [safe, protect, standard, attack]ApiResponse
setOptionAlertOverridesFilePath(java.lang.String filepath)
Sets (or clears, if empty) the path to the file with alert overrides.ApiResponse
setOptionDefaultUserAgent(java.lang.String string)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionDnsTtlSuccessfulQueries(int i)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionHttpStateEnabled(boolean bool)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionMaximumAlertInstances(java.lang.String numberofinstances)
Sets the maximum number of alert instances to include in a report.ApiResponse
setOptionMergeRelatedAlerts(java.lang.String enabled)
Sets whether or not related alerts will be merged in any reports generated.ApiResponse
setOptionProxyChainName(java.lang.String string)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionProxyChainPassword(java.lang.String string)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionProxyChainPort(int i)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionProxyChainPrompt(boolean bool)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionProxyChainRealm(java.lang.String string)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionProxyChainSkipName(java.lang.String string)
Deprecated.Option no longer in effective use.ApiResponse
setOptionProxyChainUserName(java.lang.String string)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionSingleCookieRequestHeader(boolean bool)
Deprecated.Option no longer in effective use.ApiResponse
setOptionTimeoutInSecs(int i)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionUseProxyChain(boolean bool)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionUseProxyChainAuth(boolean bool)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
setOptionUseSocksProxy(boolean bool)
Deprecated.Use the API endpoints in the 'network' component instead.byte[]
setproxy(java.lang.String proxy)
Deprecated.Use the API endpoints in the 'network' component instead.ApiResponse
shutdown()
Shuts down ZAPApiResponse
sites()
Gets the sites accessed through/by ZAP (scheme and domain)ApiResponse
snapshotSession(java.lang.String name, java.lang.String overwrite)
Snapshots the session, optionally with the given name, and overwriting existing files.ApiResponse
urls(java.lang.String baseurl)
Gets the URLs accessed through/by ZAP, optionally filtering by (base) URL.ApiResponse
version()
Gets ZAP versionbyte[]
xmlreport()
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.ApiResponse
zapHomePath()
Gets the path to ZAP's home directory.-
Methods inherited from class org.zaproxy.clientapi.gen.deprecated.CoreDeprecated
accessUrl, alerts, clearExcludedFromProxy, deleteAllAlerts, deleteSiteNode, excludeFromProxy, generateRootCA, htmlreport, loadSession, messageHar, messagesHar, newSession, numberOfAlerts, proxypac, rootcert, runGarbageCollection, saveSession, sendHarRequest, sendRequest, setHomeDirectory, setMode, setOptionDefaultUserAgent, setOptionHttpStateEnabled, setOptionProxyChainName, setOptionProxyChainPassword, setOptionProxyChainPort, setOptionProxyChainPrompt, setOptionProxyChainRealm, setOptionProxyChainSkipName, setOptionProxyChainUserName, setOptionSingleCookieRequestHeader, setOptionTimeoutInSecs, setOptionUseProxyChain, setOptionUseProxyChainAuth, setproxy, shutdown, snapshotSession, snapshotSession, urls, xmlreport
-
-
-
-
Constructor Detail
-
Core
public Core(ClientApi api)
-
-
Method Detail
-
hosts
public ApiResponse hosts() throws ClientApiException
Gets the name of the hosts accessed through/by ZAP- Throws:
ClientApiException
-
sites
public ApiResponse sites() throws ClientApiException
Gets the sites accessed through/by ZAP (scheme and domain)- Throws:
ClientApiException
-
urls
public ApiResponse urls(java.lang.String baseurl) throws ClientApiException
Gets the URLs accessed through/by ZAP, optionally filtering by (base) URL.- Throws:
ClientApiException
-
childNodes
public ApiResponse childNodes(java.lang.String url) throws ClientApiException
Gets the child nodes underneath the specified URL in the Sites tree- Throws:
ClientApiException
-
message
public ApiResponse message(java.lang.String id) throws ClientApiException
Gets the HTTP message with the given ID. Returns the ID, request/response headers and bodies, cookies, note, type, RTT, and timestamp.- Throws:
ClientApiException
-
messages
public ApiResponse messages(java.lang.String baseurl, java.lang.String start, java.lang.String count) throws ClientApiException
Gets the HTTP messages sent by ZAP, request and response, optionally filtered by URL and paginated with 'start' position and 'count' of messages- Throws:
ClientApiException
-
messagesById
public ApiResponse messagesById(java.lang.String ids) throws ClientApiException
Gets the HTTP messages with the given IDs.- Throws:
ClientApiException
-
numberOfMessages
public ApiResponse numberOfMessages(java.lang.String baseurl) throws ClientApiException
Gets the number of messages, optionally filtering by URL- Throws:
ClientApiException
-
mode
public ApiResponse mode() throws ClientApiException
Gets the mode- Throws:
ClientApiException
-
version
public ApiResponse version() throws ClientApiException
Gets ZAP version- Throws:
ClientApiException
-
excludedFromProxy
public ApiResponse excludedFromProxy() throws ClientApiException
Gets the regular expressions, applied to URLs, to exclude from the local proxies.- Throws:
ClientApiException
-
sessionLocation
public ApiResponse sessionLocation() throws ClientApiException
Gets the location of the current session file- Throws:
ClientApiException
-
proxyChainExcludedDomains
@Deprecated public ApiResponse proxyChainExcludedDomains() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Gets all the domains that are excluded from the outgoing proxy. For each domain the following are shown: the index, the value (domain), if enabled, and if specified as a regex.- Throws:
ClientApiException
-
zapHomePath
public ApiResponse zapHomePath() throws ClientApiException
Gets the path to ZAP's home directory.- Throws:
ClientApiException
-
optionMaximumAlertInstances
public ApiResponse optionMaximumAlertInstances() throws ClientApiException
Gets the maximum number of alert instances to include in a report.- Throws:
ClientApiException
-
optionMergeRelatedAlerts
public ApiResponse optionMergeRelatedAlerts() throws ClientApiException
Gets whether or not related alerts will be merged in any reports generated.- Throws:
ClientApiException
-
optionAlertOverridesFilePath
public ApiResponse optionAlertOverridesFilePath() throws ClientApiException
Gets the path to the file with alert overrides.- Throws:
ClientApiException
-
homeDirectory
@Deprecated public ApiResponse homeDirectory() throws ClientApiException
Deprecated.- Throws:
ClientApiException
-
optionProxyChainSkipName
@Deprecated public ApiResponse optionProxyChainSkipName() throws ClientApiException
Deprecated.Use view proxyChainExcludedDomains instead.- Throws:
ClientApiException
-
optionProxyExcludedDomains
@Deprecated public ApiResponse optionProxyExcludedDomains() throws ClientApiException
Deprecated.Use view proxyChainExcludedDomains instead.- Throws:
ClientApiException
-
optionProxyExcludedDomainsEnabled
@Deprecated public ApiResponse optionProxyExcludedDomainsEnabled() throws ClientApiException
Deprecated.Use view proxyChainExcludedDomains instead.- Throws:
ClientApiException
-
alert
@Deprecated public ApiResponse alert(java.lang.String id) throws ClientApiException
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method- Throws:
ClientApiException
-
alerts
@Deprecated public ApiResponse alerts(java.lang.String baseurl, java.lang.String start, java.lang.String count, java.lang.String riskid) throws ClientApiException
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts- Throws:
ClientApiException
-
alertsSummary
@Deprecated public ApiResponse alertsSummary(java.lang.String baseurl) throws ClientApiException
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.Gets number of alerts grouped by each risk level, optionally filtering by URL- Throws:
ClientApiException
-
numberOfAlerts
@Deprecated public ApiResponse numberOfAlerts(java.lang.String baseurl, java.lang.String riskid) throws ClientApiException
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.Gets the number of alerts, optionally filtering by URL or riskId- Throws:
ClientApiException
-
optionDefaultUserAgent
@Deprecated public ApiResponse optionDefaultUserAgent() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Gets the user agent that ZAP should use when creating HTTP messages (for example, spider messages or CONNECT requests to outgoing proxy).- Throws:
ClientApiException
-
optionDnsTtlSuccessfulQueries
@Deprecated public ApiResponse optionDnsTtlSuccessfulQueries() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Gets the TTL (in seconds) of successful DNS queries.- Throws:
ClientApiException
-
optionHttpState
@Deprecated public ApiResponse optionHttpState() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionHttpStateEnabled
@Deprecated public ApiResponse optionHttpStateEnabled() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionProxyChainName
@Deprecated public ApiResponse optionProxyChainName() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionProxyChainPassword
@Deprecated public ApiResponse optionProxyChainPassword() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionProxyChainPort
@Deprecated public ApiResponse optionProxyChainPort() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionProxyChainPrompt
@Deprecated public ApiResponse optionProxyChainPrompt() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionProxyChainRealm
@Deprecated public ApiResponse optionProxyChainRealm() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionProxyChainUserName
@Deprecated public ApiResponse optionProxyChainUserName() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionSingleCookieRequestHeader
@Deprecated public ApiResponse optionSingleCookieRequestHeader() throws ClientApiException
Deprecated.Option no longer in effective use.- Throws:
ClientApiException
-
optionTimeoutInSecs
@Deprecated public ApiResponse optionTimeoutInSecs() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Gets the connection time out (in seconds).- Throws:
ClientApiException
-
optionUseProxyChain
@Deprecated public ApiResponse optionUseProxyChain() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionUseProxyChainAuth
@Deprecated public ApiResponse optionUseProxyChainAuth() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
optionUseSocksProxy
@Deprecated public ApiResponse optionUseSocksProxy() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Gets whether or not the SOCKS proxy should be used.- Throws:
ClientApiException
-
accessUrl
public ApiResponse accessUrl(java.lang.String url, java.lang.String followredirects) throws ClientApiException
Convenient and simple action to access a URL, optionally following redirections. Returns the request sent and response received and followed redirections, if any. Other actions are available which offer more control on what is sent, like, 'sendRequest' or 'sendHarRequest'.- Throws:
ClientApiException
-
shutdown
public ApiResponse shutdown() throws ClientApiException
Shuts down ZAP- Throws:
ClientApiException
-
newSession
public ApiResponse newSession(java.lang.String name, java.lang.String overwrite) throws ClientApiException
Creates a new session, optionally overwriting existing files. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.- Throws:
ClientApiException
-
loadSession
public ApiResponse loadSession(java.lang.String name) throws ClientApiException
Loads the session with the given name. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.- Throws:
ClientApiException
-
saveSession
public ApiResponse saveSession(java.lang.String name, java.lang.String overwrite) throws ClientApiException
Saves the session.- Throws:
ClientApiException
-
snapshotSession
public ApiResponse snapshotSession(java.lang.String name, java.lang.String overwrite) throws ClientApiException
Snapshots the session, optionally with the given name, and overwriting existing files. If no name is specified the name of the current session with a timestamp appended is used. If a relative path is specified it will be resolved against the "session" directory in ZAP "home" dir.- Throws:
ClientApiException
-
clearExcludedFromProxy
public ApiResponse clearExcludedFromProxy() throws ClientApiException
Clears the regexes of URLs excluded from the local proxies.- Throws:
ClientApiException
-
excludeFromProxy
public ApiResponse excludeFromProxy(java.lang.String regex) throws ClientApiException
Adds a regex of URLs that should be excluded from the local proxies.- Throws:
ClientApiException
-
setHomeDirectory
public ApiResponse setHomeDirectory(java.lang.String dir) throws ClientApiException
- Throws:
ClientApiException
-
setMode
public ApiResponse setMode(java.lang.String mode) throws ClientApiException
Sets the mode, which may be one of [safe, protect, standard, attack]- Throws:
ClientApiException
-
generateRootCA
@Deprecated public ApiResponse generateRootCA() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Generates a new Root CA certificate for the local proxies.- Throws:
ClientApiException
-
sendRequest
public ApiResponse sendRequest(java.lang.String request, java.lang.String followredirects) throws ClientApiException
Sends the HTTP request, optionally following redirections. Returns the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.- Throws:
ClientApiException
-
runGarbageCollection
public ApiResponse runGarbageCollection() throws ClientApiException
- Throws:
ClientApiException
-
deleteSiteNode
public ApiResponse deleteSiteNode(java.lang.String url, java.lang.String method, java.lang.String postdata) throws ClientApiException
Deletes the site node found in the Sites Tree on the basis of the URL, HTTP method, and post data (if applicable and specified).- Throws:
ClientApiException
-
addProxyChainExcludedDomain
@Deprecated public ApiResponse addProxyChainExcludedDomain(java.lang.String value, java.lang.String isregex, java.lang.String isenabled) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Adds a domain to be excluded from the outgoing proxy, using the specified value. Optionally sets if the new entry is enabled (default, true) and whether or not the new value is specified as a regex (default, false).- Throws:
ClientApiException
-
modifyProxyChainExcludedDomain
@Deprecated public ApiResponse modifyProxyChainExcludedDomain(java.lang.String idx, java.lang.String value, java.lang.String isregex, java.lang.String isenabled) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Modifies a domain excluded from the outgoing proxy. Allows to modify the value, if enabled or if a regex. The domain is selected with its index, which can be obtained with the view proxyChainExcludedDomains.- Throws:
ClientApiException
-
removeProxyChainExcludedDomain
@Deprecated public ApiResponse removeProxyChainExcludedDomain(java.lang.String idx) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Removes a domain excluded from the outgoing proxy, with the given index. The index can be obtained with the view proxyChainExcludedDomains.- Throws:
ClientApiException
-
enableAllProxyChainExcludedDomains
@Deprecated public ApiResponse enableAllProxyChainExcludedDomains() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Enables all domains excluded from the outgoing proxy.- Throws:
ClientApiException
-
disableAllProxyChainExcludedDomains
@Deprecated public ApiResponse disableAllProxyChainExcludedDomains() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Disables all domains excluded from the outgoing proxy.- Throws:
ClientApiException
-
setOptionMaximumAlertInstances
public ApiResponse setOptionMaximumAlertInstances(java.lang.String numberofinstances) throws ClientApiException
Sets the maximum number of alert instances to include in a report. A value of zero is treated as unlimited.- Throws:
ClientApiException
-
setOptionMergeRelatedAlerts
public ApiResponse setOptionMergeRelatedAlerts(java.lang.String enabled) throws ClientApiException
Sets whether or not related alerts will be merged in any reports generated.- Throws:
ClientApiException
-
setOptionAlertOverridesFilePath
public ApiResponse setOptionAlertOverridesFilePath(java.lang.String filepath) throws ClientApiException
Sets (or clears, if empty) the path to the file with alert overrides.- Throws:
ClientApiException
-
enablePKCS12ClientCertificate
@Deprecated public ApiResponse enablePKCS12ClientCertificate(java.lang.String filepath, java.lang.String password, java.lang.String index) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Enables use of a PKCS12 client certificate for the certificate with the given file system path, password, and optional index.- Throws:
ClientApiException
-
disableClientCertificate
@Deprecated public ApiResponse disableClientCertificate() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Disables the option for use of client certificates.- Throws:
ClientApiException
-
deleteAllAlerts
@Deprecated public ApiResponse deleteAllAlerts() throws ClientApiException
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.Deletes all alerts of the current session.- Throws:
ClientApiException
-
deleteAlert
@Deprecated public ApiResponse deleteAlert(java.lang.String id) throws ClientApiException
Deprecated.Use the API endpoint with the same name in the 'alert' component instead.Deletes the alert with the given ID.- Throws:
ClientApiException
-
setOptionDefaultUserAgent
@Deprecated public ApiResponse setOptionDefaultUserAgent(java.lang.String string) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Sets the user agent that ZAP should use when creating HTTP messages (for example, spider messages or CONNECT requests to outgoing proxy).- Throws:
ClientApiException
-
setOptionDnsTtlSuccessfulQueries
@Deprecated public ApiResponse setOptionDnsTtlSuccessfulQueries(int i) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Sets the TTL (in seconds) of successful DNS queries (applies after ZAP restart).- Throws:
ClientApiException
-
setOptionHttpStateEnabled
@Deprecated public ApiResponse setOptionHttpStateEnabled(boolean bool) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionProxyChainName
@Deprecated public ApiResponse setOptionProxyChainName(java.lang.String string) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionProxyChainPassword
@Deprecated public ApiResponse setOptionProxyChainPassword(java.lang.String string) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionProxyChainPort
@Deprecated public ApiResponse setOptionProxyChainPort(int i) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionProxyChainPrompt
@Deprecated public ApiResponse setOptionProxyChainPrompt(boolean bool) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionProxyChainRealm
@Deprecated public ApiResponse setOptionProxyChainRealm(java.lang.String string) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionProxyChainSkipName
@Deprecated public ApiResponse setOptionProxyChainSkipName(java.lang.String string) throws ClientApiException
Deprecated.Option no longer in effective use.Use actions [add|modify|remove]ProxyChainExcludedDomain instead.- Throws:
ClientApiException
-
setOptionProxyChainUserName
@Deprecated public ApiResponse setOptionProxyChainUserName(java.lang.String string) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionSingleCookieRequestHeader
@Deprecated public ApiResponse setOptionSingleCookieRequestHeader(boolean bool) throws ClientApiException
Deprecated.Option no longer in effective use.- Throws:
ClientApiException
-
setOptionTimeoutInSecs
@Deprecated public ApiResponse setOptionTimeoutInSecs(int i) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Sets the connection time out (in seconds).- Throws:
ClientApiException
-
setOptionUseProxyChain
@Deprecated public ApiResponse setOptionUseProxyChain(boolean bool) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Sets whether or not the outgoing proxy should be used. The address/hostname of the outgoing proxy must be set to enable this option.- Throws:
ClientApiException
-
setOptionUseProxyChainAuth
@Deprecated public ApiResponse setOptionUseProxyChainAuth(boolean bool) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
setOptionUseSocksProxy
@Deprecated public ApiResponse setOptionUseSocksProxy(boolean bool) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Sets whether or not the SOCKS proxy should be used.- Throws:
ClientApiException
-
proxypac
@Deprecated public byte[] proxypac() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
rootcert
@Deprecated public byte[] rootcert() throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.Gets the Root CA certificate used by the local proxies.- Throws:
ClientApiException
-
setproxy
@Deprecated public byte[] setproxy(java.lang.String proxy) throws ClientApiException
Deprecated.Use the API endpoints in the 'network' component instead.- Throws:
ClientApiException
-
xmlreport
@Deprecated public byte[] xmlreport() throws ClientApiException
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.Generates a report in XML format- Throws:
ClientApiException
-
htmlreport
@Deprecated public byte[] htmlreport() throws ClientApiException
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.Generates a report in HTML format- Throws:
ClientApiException
-
jsonreport
@Deprecated public byte[] jsonreport() throws ClientApiException
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.Generates a report in JSON format- Throws:
ClientApiException
-
mdreport
@Deprecated public byte[] mdreport() throws ClientApiException
Deprecated.Use the 'generate' API endpoint the 'reports' component instead.Generates a report in Markdown format- Throws:
ClientApiException
-
messageHar
@Deprecated public byte[] messageHar(java.lang.String id) throws ClientApiException
Deprecated.Use the API endpoints in the 'exim' add-on instead.Gets the message with the given ID in HAR format- Throws:
ClientApiException
-
messagesHar
@Deprecated public byte[] messagesHar(java.lang.String baseurl, java.lang.String start, java.lang.String count) throws ClientApiException
Deprecated.Use the API endpoints in the 'exim' add-on instead.Gets the HTTP messages sent through/by ZAP, in HAR format, optionally filtered by URL and paginated with 'start' position and 'count' of messages- Throws:
ClientApiException
-
messagesHarById
@Deprecated public byte[] messagesHarById(java.lang.String ids) throws ClientApiException
Deprecated.Use the API endpoints in the 'exim' add-on instead.Gets the HTTP messages with the given IDs, in HAR format.- Throws:
ClientApiException
-
sendHarRequest
@Deprecated public byte[] sendHarRequest(java.lang.String request, java.lang.String followredirects) throws ClientApiException
Deprecated.Use the API endpoints in the 'exim' add-on instead.Sends the first HAR request entry, optionally following redirections. Returns, in HAR format, the request sent and response received and followed redirections, if any. The Mode is enforced when sending the request (and following redirections), custom manual requests are not allowed in 'Safe' mode nor in 'Protected' mode if out of scope.- Throws:
ClientApiException
-
-