public class Context extends ContextDeprecated
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
context(java.lang.String contextname)
List the information about the named context
|
ApiResponse |
contextList()
List context names of current session
|
ApiResponse |
excludeAllContextTechnologies(java.lang.String contextname)
Excludes all built in technologies from a context
|
ApiResponse |
excludeContextTechnologies(java.lang.String contextname,
java.lang.String technologynames)
Excludes technologies with the given names, separated by a comma, from a context
|
ApiResponse |
excludedTechnologyList(java.lang.String contextname)
Lists the names of all technologies excluded from a context
|
ApiResponse |
excludeFromContext(java.lang.String contextname,
java.lang.String regex)
Add exclude regex to context
|
ApiResponse |
excludeRegexs(java.lang.String contextname)
List excluded regexs for context
|
ApiResponse |
exportContext(java.lang.String contextname,
java.lang.String contextfile)
Exports the context with the given name to a file.
|
ApiResponse |
importContext(java.lang.String contextfile)
Imports a context from a file.
|
ApiResponse |
includeAllContextTechnologies(java.lang.String contextname)
Includes all built in technologies in to a context
|
ApiResponse |
includeContextTechnologies(java.lang.String contextname,
java.lang.String technologynames)
Includes technologies with the given names, separated by a comma, to a context
|
ApiResponse |
includedTechnologyList(java.lang.String contextname)
Lists the names of all technologies included in a context
|
ApiResponse |
includeInContext(java.lang.String contextname,
java.lang.String regex)
Add include regex to context
|
ApiResponse |
includeRegexs(java.lang.String contextname)
List included regexs for context
|
ApiResponse |
newContext(java.lang.String contextname)
Creates a new context with the given name in the current session
|
ApiResponse |
removeContext(java.lang.String contextname)
Removes a context in the current session
|
ApiResponse |
setContextInScope(java.lang.String contextname,
java.lang.String booleaninscope)
Sets a context to in scope (contexts are in scope by default)
|
ApiResponse |
setContextRegexs(java.lang.String contextname,
java.lang.String incregexs,
java.lang.String excregexs)
Set the regexs to include and exclude for a context, both supplied as JSON string arrays
|
ApiResponse |
technologyList()
Lists the names of all built in technologies
|
ApiResponse |
urls(java.lang.String contextname)
Lists the URLs accessed through/by ZAP, that belong to the context with the given name.
|
excludeAllContextTechnologies, excludeContextTechnologies, excludeFromContext, exportContext, importContext, includeAllContextTechnologies, includeContextTechnologies, includeInContext, newContext, removeContext, setContextInScopepublic Context(ClientApi api)
public ApiResponse contextList() throws ClientApiException
ClientApiExceptionpublic ApiResponse excludeRegexs(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse includeRegexs(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse context(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse technologyList() throws ClientApiException
ClientApiExceptionpublic ApiResponse includedTechnologyList(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse excludedTechnologyList(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse urls(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse excludeFromContext(java.lang.String contextname, java.lang.String regex) throws ClientApiException
ClientApiExceptionpublic ApiResponse includeInContext(java.lang.String contextname, java.lang.String regex) throws ClientApiException
ClientApiExceptionpublic ApiResponse setContextRegexs(java.lang.String contextname, java.lang.String incregexs, java.lang.String excregexs) throws ClientApiException
ClientApiExceptionpublic ApiResponse newContext(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse removeContext(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse exportContext(java.lang.String contextname, java.lang.String contextfile) throws ClientApiException
ClientApiExceptionpublic ApiResponse importContext(java.lang.String contextfile) throws ClientApiException
ClientApiExceptionpublic ApiResponse includeContextTechnologies(java.lang.String contextname, java.lang.String technologynames) throws ClientApiException
ClientApiExceptionpublic ApiResponse includeAllContextTechnologies(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse excludeContextTechnologies(java.lang.String contextname, java.lang.String technologynames) throws ClientApiException
ClientApiExceptionpublic ApiResponse excludeAllContextTechnologies(java.lang.String contextname) throws ClientApiException
ClientApiExceptionpublic ApiResponse setContextInScope(java.lang.String contextname, java.lang.String booleaninscope) throws ClientApiException
ClientApiException