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, setContextInScope
public Context(ClientApi api)
public ApiResponse contextList() throws ClientApiException
ClientApiException
public ApiResponse excludeRegexs(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse includeRegexs(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse context(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse technologyList() throws ClientApiException
ClientApiException
public ApiResponse includedTechnologyList(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse excludedTechnologyList(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse urls(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse excludeFromContext(java.lang.String contextname, java.lang.String regex) throws ClientApiException
ClientApiException
public ApiResponse includeInContext(java.lang.String contextname, java.lang.String regex) throws ClientApiException
ClientApiException
public ApiResponse setContextRegexs(java.lang.String contextname, java.lang.String incregexs, java.lang.String excregexs) throws ClientApiException
ClientApiException
public ApiResponse newContext(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse removeContext(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse exportContext(java.lang.String contextname, java.lang.String contextfile) throws ClientApiException
ClientApiException
public ApiResponse importContext(java.lang.String contextfile) throws ClientApiException
ClientApiException
public ApiResponse includeContextTechnologies(java.lang.String contextname, java.lang.String technologynames) throws ClientApiException
ClientApiException
public ApiResponse includeAllContextTechnologies(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse excludeContextTechnologies(java.lang.String contextname, java.lang.String technologynames) throws ClientApiException
ClientApiException
public ApiResponse excludeAllContextTechnologies(java.lang.String contextname) throws ClientApiException
ClientApiException
public ApiResponse setContextInScope(java.lang.String contextname, java.lang.String booleaninscope) throws ClientApiException
ClientApiException