public class Core extends CoreDeprecated
| Modifier and Type | Method and 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 tree
|
ApiResponse |
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 ZAP
|
byte[] |
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 messages
|
ApiResponse |
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 mode
|
ApiResponse |
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 URL
|
ApiResponse |
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 file
|
ApiResponse |
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 ZAP
|
ApiResponse |
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 version
|
byte[] |
xmlreport()
Deprecated.
Use the 'generate' API endpoint the 'reports' component instead.
|
ApiResponse |
zapHomePath()
Gets the path to ZAP's home directory.
|
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, xmlreportpublic Core(ClientApi api)
public ApiResponse hosts() throws ClientApiException
ClientApiExceptionpublic ApiResponse sites() throws ClientApiException
ClientApiExceptionpublic ApiResponse urls(java.lang.String baseurl) throws ClientApiException
ClientApiExceptionpublic ApiResponse childNodes(java.lang.String url) throws ClientApiException
ClientApiExceptionpublic ApiResponse message(java.lang.String id) throws ClientApiException
ClientApiExceptionpublic ApiResponse messages(java.lang.String baseurl, java.lang.String start, java.lang.String count) throws ClientApiException
ClientApiExceptionpublic ApiResponse messagesById(java.lang.String ids) throws ClientApiException
ClientApiExceptionpublic ApiResponse numberOfMessages(java.lang.String baseurl) throws ClientApiException
ClientApiExceptionpublic ApiResponse mode() throws ClientApiException
ClientApiExceptionpublic ApiResponse version() throws ClientApiException
ClientApiExceptionpublic ApiResponse excludedFromProxy() throws ClientApiException
ClientApiExceptionpublic ApiResponse sessionLocation() throws ClientApiException
ClientApiException@Deprecated public ApiResponse proxyChainExcludedDomains() throws ClientApiException
ClientApiExceptionpublic ApiResponse zapHomePath() throws ClientApiException
ClientApiExceptionpublic ApiResponse optionMaximumAlertInstances() throws ClientApiException
ClientApiExceptionpublic ApiResponse optionMergeRelatedAlerts() throws ClientApiException
ClientApiExceptionpublic ApiResponse optionAlertOverridesFilePath() throws ClientApiException
ClientApiException@Deprecated public ApiResponse homeDirectory() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainSkipName() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyExcludedDomains() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyExcludedDomainsEnabled() throws ClientApiException
ClientApiException@Deprecated public ApiResponse alert(java.lang.String id) throws ClientApiException
ClientApiException@Deprecated public ApiResponse alerts(java.lang.String baseurl, java.lang.String start, java.lang.String count, java.lang.String riskid) throws ClientApiException
ClientApiException@Deprecated public ApiResponse alertsSummary(java.lang.String baseurl) throws ClientApiException
ClientApiException@Deprecated public ApiResponse numberOfAlerts(java.lang.String baseurl, java.lang.String riskid) throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionDefaultUserAgent() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionDnsTtlSuccessfulQueries() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionHttpState() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionHttpStateEnabled() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainName() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainPassword() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainPort() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainPrompt() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainRealm() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionProxyChainUserName() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionSingleCookieRequestHeader() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionTimeoutInSecs() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionUseProxyChain() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionUseProxyChainAuth() throws ClientApiException
ClientApiException@Deprecated public ApiResponse optionUseSocksProxy() throws ClientApiException
ClientApiExceptionpublic ApiResponse accessUrl(java.lang.String url, java.lang.String followredirects) throws ClientApiException
ClientApiExceptionpublic ApiResponse shutdown() throws ClientApiException
ClientApiExceptionpublic ApiResponse newSession(java.lang.String name, java.lang.String overwrite) throws ClientApiException
ClientApiExceptionpublic ApiResponse loadSession(java.lang.String name) throws ClientApiException
ClientApiExceptionpublic ApiResponse saveSession(java.lang.String name, java.lang.String overwrite) throws ClientApiException
ClientApiExceptionpublic ApiResponse snapshotSession(java.lang.String name, java.lang.String overwrite) throws ClientApiException
ClientApiExceptionpublic ApiResponse clearExcludedFromProxy() throws ClientApiException
ClientApiExceptionpublic ApiResponse excludeFromProxy(java.lang.String regex) throws ClientApiException
ClientApiExceptionpublic ApiResponse setHomeDirectory(java.lang.String dir) throws ClientApiException
ClientApiExceptionpublic ApiResponse setMode(java.lang.String mode) throws ClientApiException
ClientApiException@Deprecated public ApiResponse generateRootCA() throws ClientApiException
ClientApiExceptionpublic ApiResponse sendRequest(java.lang.String request, java.lang.String followredirects) throws ClientApiException
ClientApiExceptionpublic ApiResponse runGarbageCollection() throws ClientApiException
ClientApiExceptionpublic ApiResponse deleteSiteNode(java.lang.String url, java.lang.String method, java.lang.String postdata) throws ClientApiException
ClientApiException@Deprecated public ApiResponse addProxyChainExcludedDomain(java.lang.String value, java.lang.String isregex, java.lang.String isenabled) throws ClientApiException
ClientApiException@Deprecated public ApiResponse modifyProxyChainExcludedDomain(java.lang.String idx, java.lang.String value, java.lang.String isregex, java.lang.String isenabled) throws ClientApiException
ClientApiException@Deprecated public ApiResponse removeProxyChainExcludedDomain(java.lang.String idx) throws ClientApiException
ClientApiException@Deprecated public ApiResponse enableAllProxyChainExcludedDomains() throws ClientApiException
ClientApiException@Deprecated public ApiResponse disableAllProxyChainExcludedDomains() throws ClientApiException
ClientApiExceptionpublic ApiResponse setOptionMaximumAlertInstances(java.lang.String numberofinstances) throws ClientApiException
ClientApiExceptionpublic ApiResponse setOptionMergeRelatedAlerts(java.lang.String enabled) throws ClientApiException
ClientApiExceptionpublic ApiResponse setOptionAlertOverridesFilePath(java.lang.String filepath) throws ClientApiException
ClientApiException@Deprecated public ApiResponse enablePKCS12ClientCertificate(java.lang.String filepath, java.lang.String password, java.lang.String index) throws ClientApiException
ClientApiException@Deprecated public ApiResponse disableClientCertificate() throws ClientApiException
ClientApiException@Deprecated public ApiResponse deleteAllAlerts() throws ClientApiException
ClientApiException@Deprecated public ApiResponse deleteAlert(java.lang.String id) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionDefaultUserAgent(java.lang.String string) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionDnsTtlSuccessfulQueries(int i) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionHttpStateEnabled(boolean bool) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainName(java.lang.String string) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainPassword(java.lang.String string) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainPort(int i) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainPrompt(boolean bool) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainRealm(java.lang.String string) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainSkipName(java.lang.String string) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionProxyChainUserName(java.lang.String string) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionSingleCookieRequestHeader(boolean bool) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionTimeoutInSecs(int i) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionUseProxyChain(boolean bool) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionUseProxyChainAuth(boolean bool) throws ClientApiException
ClientApiException@Deprecated public ApiResponse setOptionUseSocksProxy(boolean bool) throws ClientApiException
ClientApiException@Deprecated
public byte[] proxypac()
throws ClientApiException
ClientApiException@Deprecated
public byte[] rootcert()
throws ClientApiException
ClientApiException@Deprecated
public byte[] setproxy(java.lang.String proxy)
throws ClientApiException
ClientApiException@Deprecated
public byte[] xmlreport()
throws ClientApiException
ClientApiException@Deprecated
public byte[] htmlreport()
throws ClientApiException
ClientApiException@Deprecated
public byte[] jsonreport()
throws ClientApiException
ClientApiException@Deprecated
public byte[] mdreport()
throws ClientApiException
ClientApiException@Deprecated
public byte[] messageHar(java.lang.String id)
throws ClientApiException
ClientApiException@Deprecated
public byte[] messagesHar(java.lang.String baseurl,
java.lang.String start,
java.lang.String count)
throws ClientApiException
ClientApiException@Deprecated
public byte[] messagesHarById(java.lang.String ids)
throws ClientApiException
ClientApiException@Deprecated
public byte[] sendHarRequest(java.lang.String request,
java.lang.String followredirects)
throws ClientApiException
ClientApiException