id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
129,600
zaproxy/zaproxy
src/org/parosproxy/paros/view/AbstractParamContainerPanel.java
AbstractParamContainerPanel.getHelpButton
private JButton getHelpButton() { if (btnHelp == null) { btnHelp = new JButton(); btnHelp.setBorder(null); btnHelp.setIcon(new ImageIcon(AbstractParamContainerPanel.class.getResource("/resource/icon/16/201.png"))); // help icon btnHelp.addActionListener(getSh...
java
private JButton getHelpButton() { if (btnHelp == null) { btnHelp = new JButton(); btnHelp.setBorder(null); btnHelp.setIcon(new ImageIcon(AbstractParamContainerPanel.class.getResource("/resource/icon/16/201.png"))); // help icon btnHelp.addActionListener(getSh...
[ "private", "JButton", "getHelpButton", "(", ")", "{", "if", "(", "btnHelp", "==", "null", ")", "{", "btnHelp", "=", "new", "JButton", "(", ")", ";", "btnHelp", ".", "setBorder", "(", "null", ")", ";", "btnHelp", ".", "setIcon", "(", "new", "ImageIcon",...
Gets the button that allows to show the help page of the panel. @return the button to show the help page of the panel, never {@code null}. @see #getShowHelpAction()
[ "Gets", "the", "button", "that", "allows", "to", "show", "the", "help", "page", "of", "the", "panel", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/view/AbstractParamContainerPanel.java#L827-L837
129,601
zaproxy/zaproxy
src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java
DefaultFetchFilter.isExcluded
private boolean isExcluded(String uri) { if (excludeList == null || excludeList.isEmpty()) { return false; } for (String ex : excludeList) { if (uri.matches(ex)) { return true; } } return false; }
java
private boolean isExcluded(String uri) { if (excludeList == null || excludeList.isEmpty()) { return false; } for (String ex : excludeList) { if (uri.matches(ex)) { return true; } } return false; }
[ "private", "boolean", "isExcluded", "(", "String", "uri", ")", "{", "if", "(", "excludeList", "==", "null", "||", "excludeList", ".", "isEmpty", "(", ")", ")", "{", "return", "false", ";", "}", "for", "(", "String", "ex", ":", "excludeList", ")", "{", ...
Tells whether or not the given URI is excluded. @param uri the URI to check @return {@code true} if the URI is excluded, {@code false} otherwise.
[ "Tells", "whether", "or", "not", "the", "given", "URI", "is", "excluded", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java#L96-L107
129,602
zaproxy/zaproxy
src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java
DefaultFetchFilter.isDomainInScope
private boolean isDomainInScope(String domain) { for (String scope : scopes) { if (domain.matches(scope)) { return true; } } return false; }
java
private boolean isDomainInScope(String domain) { for (String scope : scopes) { if (domain.matches(scope)) { return true; } } return false; }
[ "private", "boolean", "isDomainInScope", "(", "String", "domain", ")", "{", "for", "(", "String", "scope", ":", "scopes", ")", "{", "if", "(", "domain", ".", "matches", "(", "scope", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ...
Tells whether or not the given domain is one of the domains in scope. @param domain the domain to check @return {@code true} if it's a domain in scope, {@code false} otherwise. @see #scopes @see #isDomainAlwaysInScope(String)
[ "Tells", "whether", "or", "not", "the", "given", "domain", "is", "one", "of", "the", "domains", "in", "scope", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java#L117-L124
129,603
zaproxy/zaproxy
src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java
DefaultFetchFilter.isDomainAlwaysInScope
private boolean isDomainAlwaysInScope(String domain) { for (DomainAlwaysInScopeMatcher domainInScope : domainsAlwaysInScope) { if (domainInScope.matches(domain)) { return true; } } return false; }
java
private boolean isDomainAlwaysInScope(String domain) { for (DomainAlwaysInScopeMatcher domainInScope : domainsAlwaysInScope) { if (domainInScope.matches(domain)) { return true; } } return false; }
[ "private", "boolean", "isDomainAlwaysInScope", "(", "String", "domain", ")", "{", "for", "(", "DomainAlwaysInScopeMatcher", "domainInScope", ":", "domainsAlwaysInScope", ")", "{", "if", "(", "domainInScope", ".", "matches", "(", "domain", ")", ")", "{", "return", ...
Tells whether or not the given domain is one of the domains always in scope. @param domain the domain to check @return {@code true} if it's a domain always in scope, {@code false} otherwise. @see #domainsAlwaysInScope @see #isDomainInScope(String)
[ "Tells", "whether", "or", "not", "the", "given", "domain", "is", "one", "of", "the", "domains", "always", "in", "scope", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java#L134-L141
129,604
zaproxy/zaproxy
src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java
DefaultFetchFilter.setDomainsAlwaysInScope
public void setDomainsAlwaysInScope(List<DomainAlwaysInScopeMatcher> domainsAlwaysInScope) { if (domainsAlwaysInScope == null || domainsAlwaysInScope.isEmpty()) { this.domainsAlwaysInScope = Collections.emptyList(); } else { this.domainsAlwaysInScope = domainsAlwaysInScope; } }
java
public void setDomainsAlwaysInScope(List<DomainAlwaysInScopeMatcher> domainsAlwaysInScope) { if (domainsAlwaysInScope == null || domainsAlwaysInScope.isEmpty()) { this.domainsAlwaysInScope = Collections.emptyList(); } else { this.domainsAlwaysInScope = domainsAlwaysInScope; } }
[ "public", "void", "setDomainsAlwaysInScope", "(", "List", "<", "DomainAlwaysInScopeMatcher", ">", "domainsAlwaysInScope", ")", "{", "if", "(", "domainsAlwaysInScope", "==", "null", "||", "domainsAlwaysInScope", ".", "isEmpty", "(", ")", ")", "{", "this", ".", "dom...
Sets the domains that will be considered as always in scope. @param domainsAlwaysInScope the list containing all domains that are always in scope. @since 2.3.0
[ "Sets", "the", "domains", "that", "will", "be", "considered", "as", "always", "in", "scope", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/filters/DefaultFetchFilter.java#L158-L164
129,605
zaproxy/zaproxy
src/org/parosproxy/paros/core/scanner/VariantAbstractQuery.java
VariantAbstractQuery.paramAppend
private boolean paramAppend(StringBuilder sb, String name, String value, ParameterParser parser) { boolean isEdited = false; if (name != null) { sb.append(name); isEdited = true; } if (value != null) { sb.append(parser.getDef...
java
private boolean paramAppend(StringBuilder sb, String name, String value, ParameterParser parser) { boolean isEdited = false; if (name != null) { sb.append(name); isEdited = true; } if (value != null) { sb.append(parser.getDef...
[ "private", "boolean", "paramAppend", "(", "StringBuilder", "sb", ",", "String", "name", ",", "String", "value", ",", "ParameterParser", "parser", ")", "{", "boolean", "isEdited", "=", "false", ";", "if", "(", "name", "!=", "null", ")", "{", "sb", ".", "a...
Set the name value pair into the StringBuilder. If both name and value is null, not to append whole parameter. @param sb @param name Null = not to append parameter. @param value null = not to append parameter value. @return true = parameter changed.
[ "Set", "the", "name", "value", "pair", "into", "the", "StringBuilder", ".", "If", "both", "name", "and", "value", "is", "null", "not", "to", "append", "whole", "parameter", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/core/scanner/VariantAbstractQuery.java#L246-L261
129,606
zaproxy/zaproxy
src/org/parosproxy/paros/extension/history/ExtensionHistory.java
ExtensionHistory.getLogPanel
private LogPanel getLogPanel() { if (logPanel == null) { logPanel = new LogPanel(getView()); logPanel.setName(Constant.messages.getString("history.panel.title")); // ZAP: i18n // ZAP: Added History (calendar) icon logPanel.setIcon(new ImageIcon(ExtensionHistory.class.getResource("/resource/icon/16/02...
java
private LogPanel getLogPanel() { if (logPanel == null) { logPanel = new LogPanel(getView()); logPanel.setName(Constant.messages.getString("history.panel.title")); // ZAP: i18n // ZAP: Added History (calendar) icon logPanel.setIcon(new ImageIcon(ExtensionHistory.class.getResource("/resource/icon/16/02...
[ "private", "LogPanel", "getLogPanel", "(", ")", "{", "if", "(", "logPanel", "==", "null", ")", "{", "logPanel", "=", "new", "LogPanel", "(", "getView", "(", ")", ")", ";", "logPanel", ".", "setName", "(", "Constant", ".", "messages", ".", "getString", ...
This method initializes logPanel @return org.parosproxy.paros.extension.history.LogPanel
[ "This", "method", "initializes", "logPanel" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/extension/history/ExtensionHistory.java#L205-L218
129,607
zaproxy/zaproxy
src/org/parosproxy/paros/extension/history/ExtensionHistory.java
ExtensionHistory.isHistoryTypeToShow
private static boolean isHistoryTypeToShow(int historyType) { return historyType == HistoryReference.TYPE_PROXIED || historyType == HistoryReference.TYPE_ZAP_USER || historyType == HistoryReference.TYPE_AUTHENTICATION || historyType == HistoryReference.TYPE_PROXY_CONNECT; }
java
private static boolean isHistoryTypeToShow(int historyType) { return historyType == HistoryReference.TYPE_PROXIED || historyType == HistoryReference.TYPE_ZAP_USER || historyType == HistoryReference.TYPE_AUTHENTICATION || historyType == HistoryReference.TYPE_PROXY_CONNECT; }
[ "private", "static", "boolean", "isHistoryTypeToShow", "(", "int", "historyType", ")", "{", "return", "historyType", "==", "HistoryReference", ".", "TYPE_PROXIED", "||", "historyType", "==", "HistoryReference", ".", "TYPE_ZAP_USER", "||", "historyType", "==", "History...
Tells whether or not the messages with the given history type should be shown in the History tab. @param historyType the history type that will be checked @return {@code true} if it should be shown, {@code false} otherwise
[ "Tells", "whether", "or", "not", "the", "messages", "with", "the", "given", "history", "type", "should", "be", "shown", "in", "the", "History", "tab", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/extension/history/ExtensionHistory.java#L438-L441
129,608
zaproxy/zaproxy
src/org/parosproxy/paros/extension/history/ExtensionHistory.java
ExtensionHistory.getResendDialog
public ManualRequestEditorDialog getResendDialog() { if (resendDialog == null) { resendDialog = new ManualHttpRequestEditorDialog(true, "resend", "ui.dialogs.manreq"); resendDialog.setTitle(Constant.messages.getString("manReq.dialog.title")); // ZAP: i18n } return resendDialog; }
java
public ManualRequestEditorDialog getResendDialog() { if (resendDialog == null) { resendDialog = new ManualHttpRequestEditorDialog(true, "resend", "ui.dialogs.manreq"); resendDialog.setTitle(Constant.messages.getString("manReq.dialog.title")); // ZAP: i18n } return resendDialog; }
[ "public", "ManualRequestEditorDialog", "getResendDialog", "(", ")", "{", "if", "(", "resendDialog", "==", "null", ")", "{", "resendDialog", "=", "new", "ManualHttpRequestEditorDialog", "(", "true", ",", "\"resend\"", ",", "\"ui.dialogs.manreq\"", ")", ";", "resendDi...
This method initializes resendDialog @return org.parosproxy.paros.extension.history.ResendDialog
[ "This", "method", "initializes", "resendDialog" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/extension/history/ExtensionHistory.java#L567-L573
129,609
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.isDefaultSessionToken
public boolean isDefaultSessionToken(String token) { if (getParam().getDefaultTokensEnabled().contains(token.toLowerCase(Locale.ENGLISH))) return true; return false; }
java
public boolean isDefaultSessionToken(String token) { if (getParam().getDefaultTokensEnabled().contains(token.toLowerCase(Locale.ENGLISH))) return true; return false; }
[ "public", "boolean", "isDefaultSessionToken", "(", "String", "token", ")", "{", "if", "(", "getParam", "(", ")", ".", "getDefaultTokensEnabled", "(", ")", ".", "contains", "(", "token", ".", "toLowerCase", "(", "Locale", ".", "ENGLISH", ")", ")", ")", "ret...
Checks if a particular token is part of the default session tokens set by the user using the options panel. The default session tokens are valid for all sites. The check is being performed in a lower-case manner, as default session tokens are case-insensitive. @param token the token @return true, if it is a default se...
[ "Checks", "if", "a", "particular", "token", "is", "part", "of", "the", "default", "session", "tokens", "set", "by", "the", "user", "using", "the", "options", "panel", ".", "The", "default", "session", "tokens", "are", "valid", "for", "all", "sites", ".", ...
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L294-L298
129,610
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.isRemovedDefaultSessionToken
private boolean isRemovedDefaultSessionToken(String site, String token) { if (removedDefaultTokens == null) return false; HashSet<String> removed = removedDefaultTokens.get(site); if (removed == null || !removed.contains(token)) return false; return true; }
java
private boolean isRemovedDefaultSessionToken(String site, String token) { if (removedDefaultTokens == null) return false; HashSet<String> removed = removedDefaultTokens.get(site); if (removed == null || !removed.contains(token)) return false; return true; }
[ "private", "boolean", "isRemovedDefaultSessionToken", "(", "String", "site", ",", "String", "token", ")", "{", "if", "(", "removedDefaultTokens", "==", "null", ")", "return", "false", ";", "HashSet", "<", "String", ">", "removed", "=", "removedDefaultTokens", "....
Checks if a particular default session token was removed by an user as a session token for a site. @param site the site. This parameter has to be formed as defined in the {@link ExtensionHttpSessions} class documentation. @param token the token @return true, if it is a previously removed default session token
[ "Checks", "if", "a", "particular", "default", "session", "token", "was", "removed", "by", "an", "user", "as", "a", "session", "token", "for", "a", "site", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L309-L316
129,611
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.markRemovedDefaultSessionToken
private void markRemovedDefaultSessionToken(String site, String token) { if (removedDefaultTokens == null) removedDefaultTokens = new HashMap<>(1); HashSet<String> removedSet = removedDefaultTokens.get(site); if (removedSet == null) { removedSet = new HashSet<>(1); removedDefaultTokens.put(site, removedS...
java
private void markRemovedDefaultSessionToken(String site, String token) { if (removedDefaultTokens == null) removedDefaultTokens = new HashMap<>(1); HashSet<String> removedSet = removedDefaultTokens.get(site); if (removedSet == null) { removedSet = new HashSet<>(1); removedDefaultTokens.put(site, removedS...
[ "private", "void", "markRemovedDefaultSessionToken", "(", "String", "site", ",", "String", "token", ")", "{", "if", "(", "removedDefaultTokens", "==", "null", ")", "removedDefaultTokens", "=", "new", "HashMap", "<>", "(", "1", ")", ";", "HashSet", "<", "String...
Marks a default session token as removed for a particular site. @param site the site. This parameter has to be formed as defined in the {@link ExtensionHttpSessions} class documentation. @param token the token
[ "Marks", "a", "default", "session", "token", "as", "removed", "for", "a", "particular", "site", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L325-L334
129,612
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.unmarkRemovedDefaultSessionToken
private void unmarkRemovedDefaultSessionToken(String site, String token) { if (removedDefaultTokens == null) return; HashSet<String> removed = removedDefaultTokens.get(site); if (removed == null) return; removed.remove(token); }
java
private void unmarkRemovedDefaultSessionToken(String site, String token) { if (removedDefaultTokens == null) return; HashSet<String> removed = removedDefaultTokens.get(site); if (removed == null) return; removed.remove(token); }
[ "private", "void", "unmarkRemovedDefaultSessionToken", "(", "String", "site", ",", "String", "token", ")", "{", "if", "(", "removedDefaultTokens", "==", "null", ")", "return", ";", "HashSet", "<", "String", ">", "removed", "=", "removedDefaultTokens", ".", "get"...
Unmarks a default session token as removed for a particular site. @param site the site. This parameter has to be formed as defined in the {@link ExtensionHttpSessions} class documentation. @param token the token
[ "Unmarks", "a", "default", "session", "token", "as", "removed", "for", "a", "particular", "site", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L343-L350
129,613
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.isSessionToken
public boolean isSessionToken(String site, String token) { // Add a default port if (!site.contains(":")) { site = site + (":80"); } HttpSessionTokensSet siteTokens = sessionTokens.get(site); if (siteTokens == null) return false; return siteTokens.isSessionToken(token); }
java
public boolean isSessionToken(String site, String token) { // Add a default port if (!site.contains(":")) { site = site + (":80"); } HttpSessionTokensSet siteTokens = sessionTokens.get(site); if (siteTokens == null) return false; return siteTokens.isSessionToken(token); }
[ "public", "boolean", "isSessionToken", "(", "String", "site", ",", "String", "token", ")", "{", "// Add a default port", "if", "(", "!", "site", ".", "contains", "(", "\":\"", ")", ")", "{", "site", "=", "site", "+", "(", "\":80\"", ")", ";", "}", "Htt...
Checks if a particular token is a session token name for a particular site. @param site the site. This parameter has to be formed as defined in the {@link ExtensionHttpSessions} class documentation. However, if the protocol is missing, a default protocol of 80 is used. @param token the token @return true, if it is ses...
[ "Checks", "if", "a", "particular", "token", "is", "a", "session", "token", "name", "for", "a", "particular", "site", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L361-L370
129,614
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.addHttpSessionToken
public void addHttpSessionToken(String site, String token) { // Add a default port if (!site.contains(":")) { site = site + (":80"); } HttpSessionTokensSet siteTokens = sessionTokens.get(site); if (siteTokens == null) { siteTokens = new HttpSessionTokensSet(); sessionTokens.put(site, siteTokens); }...
java
public void addHttpSessionToken(String site, String token) { // Add a default port if (!site.contains(":")) { site = site + (":80"); } HttpSessionTokensSet siteTokens = sessionTokens.get(site); if (siteTokens == null) { siteTokens = new HttpSessionTokensSet(); sessionTokens.put(site, siteTokens); }...
[ "public", "void", "addHttpSessionToken", "(", "String", "site", ",", "String", "token", ")", "{", "// Add a default port", "if", "(", "!", "site", ".", "contains", "(", "\":\"", ")", ")", "{", "site", "=", "site", "+", "(", "\":80\"", ")", ";", "}", "H...
Adds a new session token for a particular site. @param site the site. This parameter has to be formed as defined in the {@link ExtensionHttpSessions} class documentation. However, if the protocol is missing, a default protocol of 80 is used. @param token the token
[ "Adds", "a", "new", "session", "token", "for", "a", "particular", "site", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L380-L398
129,615
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.getHttpSessionsForContext
public List<HttpSession> getHttpSessionsForContext(Context context) { List<HttpSession> sessions = new LinkedList<>(); if (this.sessions == null) { return sessions; } synchronized (sessionLock) { for (Entry<String, HttpSessionsSite> e : this.sessions.entrySet()) { String siteName = e.getKey(); si...
java
public List<HttpSession> getHttpSessionsForContext(Context context) { List<HttpSession> sessions = new LinkedList<>(); if (this.sessions == null) { return sessions; } synchronized (sessionLock) { for (Entry<String, HttpSessionsSite> e : this.sessions.entrySet()) { String siteName = e.getKey(); si...
[ "public", "List", "<", "HttpSession", ">", "getHttpSessionsForContext", "(", "Context", "context", ")", "{", "List", "<", "HttpSession", ">", "sessions", "=", "new", "LinkedList", "<>", "(", ")", ";", "if", "(", "this", ".", "sessions", "==", "null", ")", ...
Builds and returns a list of http sessions that correspond to a given context. @param context the context @return the http sessions for context
[ "Builds", "and", "returns", "a", "list", "of", "http", "sessions", "that", "correspond", "to", "a", "given", "context", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L563-L579
129,616
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.getHttpSessionTokensSetForContext
public HttpSessionTokensSet getHttpSessionTokensSetForContext(Context context){ //TODO: Proper implementation. Hack for now for (Entry<String, HttpSessionTokensSet> e : this.sessionTokens.entrySet()) { String siteName = e.getKey(); siteName = "http://" + siteName; if (context.isInContext(siteName)) ret...
java
public HttpSessionTokensSet getHttpSessionTokensSetForContext(Context context){ //TODO: Proper implementation. Hack for now for (Entry<String, HttpSessionTokensSet> e : this.sessionTokens.entrySet()) { String siteName = e.getKey(); siteName = "http://" + siteName; if (context.isInContext(siteName)) ret...
[ "public", "HttpSessionTokensSet", "getHttpSessionTokensSetForContext", "(", "Context", "context", ")", "{", "//TODO: Proper implementation. Hack for now", "for", "(", "Entry", "<", "String", ",", "HttpSessionTokensSet", ">", "e", ":", "this", ".", "sessionTokens", ".", ...
Gets the http session tokens set for the first site matching a given Context. @param context the context @return the http session tokens set for context
[ "Gets", "the", "http", "session", "tokens", "set", "for", "the", "first", "site", "matching", "a", "given", "Context", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L587-L596
129,617
zaproxy/zaproxy
src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java
ExtensionHttpSessions.getSites
public List<String> getSites() { List<String> sites = new ArrayList<String>(); if (this.sessions == null) { return sites; } synchronized (sessionLock) { sites.addAll(this.sessions.keySet()); } return sites; }
java
public List<String> getSites() { List<String> sites = new ArrayList<String>(); if (this.sessions == null) { return sites; } synchronized (sessionLock) { sites.addAll(this.sessions.keySet()); } return sites; }
[ "public", "List", "<", "String", ">", "getSites", "(", ")", "{", "List", "<", "String", ">", "sites", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "if", "(", "this", ".", "sessions", "==", "null", ")", "{", "return", "sites", ";", ...
Gets all of the sites with http sessions. @return all of the sites with http sessions
[ "Gets", "all", "of", "the", "sites", "with", "http", "sessions", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java#L603-L614
129,618
zaproxy/zaproxy
src/org/parosproxy/paros/network/HttpBody.java
HttpBody.setLength
public void setLength(int length) { if (length < 0 || body.length == length) { return; } int oldPos = pos; pos = Math.min(pos, length); byte[] newBody = new byte[length]; System.arraycopy(body, 0, newBody, 0, pos); body = newBody; if (oldPos > pos) { cachedString = null; } }
java
public void setLength(int length) { if (length < 0 || body.length == length) { return; } int oldPos = pos; pos = Math.min(pos, length); byte[] newBody = new byte[length]; System.arraycopy(body, 0, newBody, 0, pos); body = newBody; if (oldPos > pos) { cachedString = null; } }
[ "public", "void", "setLength", "(", "int", "length", ")", "{", "if", "(", "length", "<", "0", "||", "body", ".", "length", "==", "length", ")", "{", "return", ";", "}", "int", "oldPos", "=", "pos", ";", "pos", "=", "Math", ".", "min", "(", "pos",...
Sets the current length of the body. If the current content is longer, the excessive data will be truncated. @param length the new length to set.
[ "Sets", "the", "current", "length", "of", "the", "body", ".", "If", "the", "current", "content", "is", "longer", "the", "excessive", "data", "will", "be", "truncated", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/network/HttpBody.java#L358-L373
129,619
zaproxy/zaproxy
src/org/zaproxy/zap/extension/lang/LangImporter.java
LangImporter.createIncludedFilesPattern
static Pattern createIncludedFilesPattern() { String messagesFilesRegex = LocaleUtils.createResourceFilesRegex(Constant.MESSAGES_PREFIX, Constant.MESSAGES_EXTENSION); String vulnerabilitiesFilesRegex = LocaleUtils.createResourceFilesRegex( Constant.VULNERABILITIES_PREFIX, Constant.VULNERABILITIES_EXTENSION)...
java
static Pattern createIncludedFilesPattern() { String messagesFilesRegex = LocaleUtils.createResourceFilesRegex(Constant.MESSAGES_PREFIX, Constant.MESSAGES_EXTENSION); String vulnerabilitiesFilesRegex = LocaleUtils.createResourceFilesRegex( Constant.VULNERABILITIES_PREFIX, Constant.VULNERABILITIES_EXTENSION)...
[ "static", "Pattern", "createIncludedFilesPattern", "(", ")", "{", "String", "messagesFilesRegex", "=", "LocaleUtils", ".", "createResourceFilesRegex", "(", "Constant", ".", "MESSAGES_PREFIX", ",", "Constant", ".", "MESSAGES_EXTENSION", ")", ";", "String", "vulnerabiliti...
Relaxed visibility to allow unit test
[ "Relaxed", "visibility", "to", "allow", "unit", "test" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/lang/LangImporter.java#L115-L123
129,620
zaproxy/zaproxy
src/org/zaproxy/zap/extension/forceduser/ExtensionForcedUser.java
ExtensionForcedUser.setForcedUser
public void setForcedUser(int contextId, User user) { if (user != null) this.contextForcedUsersMap.put(contextId, user); else this.contextForcedUsersMap.remove(contextId); this.updateForcedUserModeToggleButtonState(); }
java
public void setForcedUser(int contextId, User user) { if (user != null) this.contextForcedUsersMap.put(contextId, user); else this.contextForcedUsersMap.remove(contextId); this.updateForcedUserModeToggleButtonState(); }
[ "public", "void", "setForcedUser", "(", "int", "contextId", ",", "User", "user", ")", "{", "if", "(", "user", "!=", "null", ")", "this", ".", "contextForcedUsersMap", ".", "put", "(", "contextId", ",", "user", ")", ";", "else", "this", ".", "contextForce...
Sets the forced user for a context. @param contextId the context id @param user the user
[ "Sets", "the", "forced", "user", "for", "a", "context", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/forceduser/ExtensionForcedUser.java#L234-L240
129,621
zaproxy/zaproxy
src/org/zaproxy/zap/extension/forceduser/ExtensionForcedUser.java
ExtensionForcedUser.setForcedUser
public void setForcedUser(int contextId, int userId) throws IllegalStateException { User user = getUserManagementExtension().getContextUserAuthManager(contextId).getUserById(userId); if (user == null) throw new IllegalStateException("No user matching the provided id was found."); setForcedUser(contextId, user)...
java
public void setForcedUser(int contextId, int userId) throws IllegalStateException { User user = getUserManagementExtension().getContextUserAuthManager(contextId).getUserById(userId); if (user == null) throw new IllegalStateException("No user matching the provided id was found."); setForcedUser(contextId, user)...
[ "public", "void", "setForcedUser", "(", "int", "contextId", ",", "int", "userId", ")", "throws", "IllegalStateException", "{", "User", "user", "=", "getUserManagementExtension", "(", ")", ".", "getContextUserAuthManager", "(", "contextId", ")", ".", "getUserById", ...
Sets the forced user for a context, based on the user id. @param contextId the context id @param userId the user id @throws IllegalStateException if no user was found that matches the provided id.
[ "Sets", "the", "forced", "user", "for", "a", "context", "based", "on", "the", "user", "id", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/forceduser/ExtensionForcedUser.java#L249-L254
129,622
zaproxy/zaproxy
src/org/parosproxy/paros/network/ByteVector.java
ByteVector.getBytes
public byte[] getBytes() { if (!changed) { return buf; } byte[] newBuf = new byte[bufLen]; System.arraycopy(buf, 0, newBuf, 0, bufLen); buf = newBuf; return buf; }
java
public byte[] getBytes() { if (!changed) { return buf; } byte[] newBuf = new byte[bufLen]; System.arraycopy(buf, 0, newBuf, 0, bufLen); buf = newBuf; return buf; }
[ "public", "byte", "[", "]", "getBytes", "(", ")", "{", "if", "(", "!", "changed", ")", "{", "return", "buf", ";", "}", "byte", "[", "]", "newBuf", "=", "new", "byte", "[", "bufLen", "]", ";", "System", ".", "arraycopy", "(", "buf", ",", "0", ",...
Return the current byte array containing the bytes. @return a copy of the byte array
[ "Return", "the", "current", "byte", "array", "containing", "the", "bytes", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/network/ByteVector.java#L88-L97
129,623
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.init
private void init() { this.paused = false; this.stopped = true; this.tasksDoneCount = 0; this.tasksTotalCount = 0; this.initialized = false; // Add a default fetch filter and any custom ones defaultFetchFilter = new DefaultFetchFilter(); this.addFetchFilter(defaultFetchFilter); for (FetchFilter fi...
java
private void init() { this.paused = false; this.stopped = true; this.tasksDoneCount = 0; this.tasksTotalCount = 0; this.initialized = false; // Add a default fetch filter and any custom ones defaultFetchFilter = new DefaultFetchFilter(); this.addFetchFilter(defaultFetchFilter); for (FetchFilter fi...
[ "private", "void", "init", "(", ")", "{", "this", ".", "paused", "=", "false", ";", "this", ".", "stopped", "=", "true", ";", "this", ".", "tasksDoneCount", "=", "0", ";", "this", ".", "tasksTotalCount", "=", "0", ";", "this", ".", "initialized", "="...
Initialize the spider.
[ "Initialize", "the", "spider", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L183-L207
129,624
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.setExcludeList
public void setExcludeList(List<String> excludeList) { log.debug("New Exclude list: " + excludeList); defaultFetchFilter.setExcludeRegexes(excludeList); }
java
public void setExcludeList(List<String> excludeList) { log.debug("New Exclude list: " + excludeList); defaultFetchFilter.setExcludeRegexes(excludeList); }
[ "public", "void", "setExcludeList", "(", "List", "<", "String", ">", "excludeList", ")", "{", "log", ".", "debug", "(", "\"New Exclude list: \"", "+", "excludeList", ")", ";", "defaultFetchFilter", ".", "setExcludeRegexes", "(", "excludeList", ")", ";", "}" ]
Sets the exclude list which contains a List of strings, defining the uris that should be excluded. @param excludeList the new exclude list
[ "Sets", "the", "exclude", "list", "which", "contains", "a", "List", "of", "strings", "defining", "the", "uris", "that", "should", "be", "excluded", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L372-L375
129,625
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.submitTask
protected synchronized void submitTask(SpiderTask task) { if (isStopped()) { log.debug("Submitting task skipped (" + task + ") as the Spider process is stopped."); return; } if (isTerminated()) { log.debug("Submitting task skipped (" + task + ") as the Spider process is terminated."); return; } th...
java
protected synchronized void submitTask(SpiderTask task) { if (isStopped()) { log.debug("Submitting task skipped (" + task + ") as the Spider process is stopped."); return; } if (isTerminated()) { log.debug("Submitting task skipped (" + task + ") as the Spider process is terminated."); return; } th...
[ "protected", "synchronized", "void", "submitTask", "(", "SpiderTask", "task", ")", "{", "if", "(", "isStopped", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Submitting task skipped (\"", "+", "task", "+", "\") as the Spider process is stopped.\"", ")", ";", ...
Submit a new task to the spidering task pool. @param task the task
[ "Submit", "a", "new", "task", "to", "the", "spidering", "task", "pool", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L436-L454
129,626
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.start
public void start() { log.info("Starting spider..."); this.timeStarted = System.currentTimeMillis(); fetchFilterSeeds(); // Check if seeds are available, otherwise the Spider will start, but will not have any // seeds and will not stop. if (seedList == null || seedList.isEmpty()) { log.warn("No see...
java
public void start() { log.info("Starting spider..."); this.timeStarted = System.currentTimeMillis(); fetchFilterSeeds(); // Check if seeds are available, otherwise the Spider will start, but will not have any // seeds and will not stop. if (seedList == null || seedList.isEmpty()) { log.warn("No see...
[ "public", "void", "start", "(", ")", "{", "log", ".", "info", "(", "\"Starting spider...\"", ")", ";", "this", ".", "timeStarted", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "fetchFilterSeeds", "(", ")", ";", "// Check if seeds are available, otherw...
Starts the Spider crawling.
[ "Starts", "the", "Spider", "crawling", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L470-L517
129,627
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.fetchFilterSeeds
private void fetchFilterSeeds() { if (seedList == null || seedList.isEmpty()) { return; } for (Iterator<URI> it = seedList.iterator(); it.hasNext();) { URI seed = it.next(); for (FetchFilter filter : controller.getFetchFilters()) { FetchStatus filterReason = filter.checkFilter(seed); if (filterR...
java
private void fetchFilterSeeds() { if (seedList == null || seedList.isEmpty()) { return; } for (Iterator<URI> it = seedList.iterator(); it.hasNext();) { URI seed = it.next(); for (FetchFilter filter : controller.getFetchFilters()) { FetchStatus filterReason = filter.checkFilter(seed); if (filterR...
[ "private", "void", "fetchFilterSeeds", "(", ")", "{", "if", "(", "seedList", "==", "null", "||", "seedList", ".", "isEmpty", "(", ")", ")", "{", "return", ";", "}", "for", "(", "Iterator", "<", "URI", ">", "it", "=", "seedList", ".", "iterator", "(",...
Filters the seed list using the current fetch filters, preventing any non-valid seed from being accessed. @see #seedList @see FetchFilter @see SpiderController#getFetchFilters() @since 2.5.0
[ "Filters", "the", "seed", "list", "using", "the", "current", "fetch", "filters", "preventing", "any", "non", "-", "valid", "seed", "from", "being", "accessed", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L527-L545
129,628
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.stop
public void stop() { if (stopped) { return; } this.stopped = true; log.info("Stopping spidering process by request."); if (this.paused) { // Have to resume first or we get a deadlock this.resume(); } // Issue the shutdown command this.threadPool.shutdown(); try { if (!this.threadPool...
java
public void stop() { if (stopped) { return; } this.stopped = true; log.info("Stopping spidering process by request."); if (this.paused) { // Have to resume first or we get a deadlock this.resume(); } // Issue the shutdown command this.threadPool.shutdown(); try { if (!this.threadPool...
[ "public", "void", "stop", "(", ")", "{", "if", "(", "stopped", ")", "{", "return", ";", "}", "this", ".", "stopped", "=", "true", ";", "log", ".", "info", "(", "\"Stopping spidering process by request.\"", ")", ";", "if", "(", "this", ".", "paused", ")...
Stops the Spider crawling. Must not be called from any of the threads in the thread pool.
[ "Stops", "the", "Spider", "crawling", ".", "Must", "not", "be", "called", "from", "any", "of", "the", "threads", "in", "the", "thread", "pool", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L550-L585
129,629
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.complete
private void complete() { if (stopped) { return; } log.info("Spidering process is complete. Shutting down..."); this.stopped = true; if (httpSender != null) { this.getHttpSender().shutdown(); httpSender = null; } // Notify the controller to clean up memory controller.reset(); // Issue the ...
java
private void complete() { if (stopped) { return; } log.info("Spidering process is complete. Shutting down..."); this.stopped = true; if (httpSender != null) { this.getHttpSender().shutdown(); httpSender = null; } // Notify the controller to clean up memory controller.reset(); // Issue the ...
[ "private", "void", "complete", "(", ")", "{", "if", "(", "stopped", ")", "{", "return", ";", "}", "log", ".", "info", "(", "\"Spidering process is complete. Shutting down...\"", ")", ";", "this", ".", "stopped", "=", "true", ";", "if", "(", "httpSender", "...
The Spidering process is complete.
[ "The", "Spidering", "process", "is", "complete", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L590-L619
129,630
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.checkPauseAndWait
protected void checkPauseAndWait() { pauseLock.lock(); try { while (paused && ! stopped) { pausedCondition.await(); } } catch (InterruptedException e) { } finally { pauseLock.unlock(); } }
java
protected void checkPauseAndWait() { pauseLock.lock(); try { while (paused && ! stopped) { pausedCondition.await(); } } catch (InterruptedException e) { } finally { pauseLock.unlock(); } }
[ "protected", "void", "checkPauseAndWait", "(", ")", "{", "pauseLock", ".", "lock", "(", ")", ";", "try", "{", "while", "(", "paused", "&&", "!", "stopped", ")", "{", "pausedCondition", ".", "await", "(", ")", ";", "}", "}", "catch", "(", "InterruptedEx...
This method is run by Threads in the ThreadPool and checks if the scan is paused and, if it is, waits until it's unpaused.
[ "This", "method", "is", "run", "by", "Threads", "in", "the", "ThreadPool", "and", "checks", "if", "the", "scan", "is", "paused", "and", "if", "it", "is", "waits", "until", "it", "s", "unpaused", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L680-L690
129,631
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.postTaskExecution
protected synchronized void postTaskExecution() { if (stopped) { // Stopped, so don't count the task(s) as done. // (worker threads call this method even if the task was not really executed.) return; } tasksDoneCount++; int percentageComplete = tasksDoneCount * 100 / tasksTotalCount; // Compute the ...
java
protected synchronized void postTaskExecution() { if (stopped) { // Stopped, so don't count the task(s) as done. // (worker threads call this method even if the task was not really executed.) return; } tasksDoneCount++; int percentageComplete = tasksDoneCount * 100 / tasksTotalCount; // Compute the ...
[ "protected", "synchronized", "void", "postTaskExecution", "(", ")", "{", "if", "(", "stopped", ")", "{", "// Stopped, so don't count the task(s) as done.", "// (worker threads call this method even if the task was not really executed.)", "return", ";", "}", "tasksDoneCount", "++"...
This method is run by each thread in the Thread Pool after the task execution. Particularly, it notifies the listeners of the progress and checks if the scan is complete. Called from the SpiderTask.
[ "This", "method", "is", "run", "by", "each", "thread", "in", "the", "Thread", "Pool", "after", "the", "task", "execution", ".", "Particularly", "it", "notifies", "the", "listeners", "of", "the", "progress", "and", "checks", "if", "the", "scan", "is", "comp...
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L697-L713
129,632
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.isStopped
public boolean isStopped() { if (! stopped && this.spiderParam.getMaxDuration() > 0) { // Check to see if the scan has exceeded the specified maxDuration if (TimeUnit.MILLISECONDS.toMinutes(System.currentTimeMillis() - this.timeStarted) > this.spiderParam.getMaxDuration()) { log.info("Spidering proces...
java
public boolean isStopped() { if (! stopped && this.spiderParam.getMaxDuration() > 0) { // Check to see if the scan has exceeded the specified maxDuration if (TimeUnit.MILLISECONDS.toMinutes(System.currentTimeMillis() - this.timeStarted) > this.spiderParam.getMaxDuration()) { log.info("Spidering proces...
[ "public", "boolean", "isStopped", "(", ")", "{", "if", "(", "!", "stopped", "&&", "this", ".", "spiderParam", ".", "getMaxDuration", "(", ")", ">", "0", ")", "{", "// Check to see if the scan has exceeded the specified maxDuration", "if", "(", "TimeUnit", ".", "...
Checks if is stopped, i.e. a shutdown was issued or it is not running. @return true, if is stopped
[ "Checks", "if", "is", "stopped", "i", ".", "e", ".", "a", "shutdown", "was", "issued", "or", "it", "is", "not", "running", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L729-L739
129,633
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.notifyListenersSpiderProgress
protected synchronized void notifyListenersSpiderProgress(int percentageComplete, int numberCrawled, int numberToCrawl) { for (SpiderListener l : listeners) { l.spiderProgress(percentageComplete, numberCrawled, numberToCrawl); } }
java
protected synchronized void notifyListenersSpiderProgress(int percentageComplete, int numberCrawled, int numberToCrawl) { for (SpiderListener l : listeners) { l.spiderProgress(percentageComplete, numberCrawled, numberToCrawl); } }
[ "protected", "synchronized", "void", "notifyListenersSpiderProgress", "(", "int", "percentageComplete", ",", "int", "numberCrawled", ",", "int", "numberToCrawl", ")", "{", "for", "(", "SpiderListener", "l", ":", "listeners", ")", "{", "l", ".", "spiderProgress", "...
Notifies all the listeners regarding the spider progress. @param percentageComplete the percentage complete @param numberCrawled the number of pages crawled @param numberToCrawl the number of pages left to crawl
[ "Notifies", "all", "the", "listeners", "regarding", "the", "spider", "progress", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L777-L782
129,634
zaproxy/zaproxy
src/org/zaproxy/zap/spider/Spider.java
Spider.notifyListenersFoundURI
protected synchronized void notifyListenersFoundURI(String uri, String method, FetchStatus status) { for (SpiderListener l : listeners) { l.foundURI(uri, method, status); } }
java
protected synchronized void notifyListenersFoundURI(String uri, String method, FetchStatus status) { for (SpiderListener l : listeners) { l.foundURI(uri, method, status); } }
[ "protected", "synchronized", "void", "notifyListenersFoundURI", "(", "String", "uri", ",", "String", "method", ",", "FetchStatus", "status", ")", "{", "for", "(", "SpiderListener", "l", ":", "listeners", ")", "{", "l", ".", "foundURI", "(", "uri", ",", "meth...
Notifies the listeners regarding a found uri. @param uri the uri @param method the method used for fetching the resource @param status the {@link FetchStatus} stating if this uri will be processed, and, if not, stating the reason of the filtering
[ "Notifies", "the", "listeners", "regarding", "a", "found", "uri", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/Spider.java#L792-L796
129,635
zaproxy/zaproxy
src/org/parosproxy/paros/model/Model.java
Model.addContextDataFactory
public void addContextDataFactory(ContextDataFactory contextDataFactory) { if (contextDataFactory == null) { throw new IllegalArgumentException("Parameter contextDataFactory must not be null."); } this.contextDataFactories.add(contextDataFactory); if (postInitialisation) { for (Context context : g...
java
public void addContextDataFactory(ContextDataFactory contextDataFactory) { if (contextDataFactory == null) { throw new IllegalArgumentException("Parameter contextDataFactory must not be null."); } this.contextDataFactories.add(contextDataFactory); if (postInitialisation) { for (Context context : g...
[ "public", "void", "addContextDataFactory", "(", "ContextDataFactory", "contextDataFactory", ")", "{", "if", "(", "contextDataFactory", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Parameter contextDataFactory must not be null.\"", ")", ";", ...
Adds the given context data factory to the model. @param contextDataFactory the context data factory that will be added. @throws IllegalArgumentException if the given parameter is {@code null}. @see #removeContextDataFactory(ContextDataFactory)
[ "Adds", "the", "given", "context", "data", "factory", "to", "the", "model", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/Model.java#L480-L491
129,636
zaproxy/zaproxy
src/org/parosproxy/paros/model/Model.java
Model.importContext
public void importContext(Context ctx, Configuration config) throws ConfigurationException { validateContextNotNull(ctx); validateConfigNotNull(config); for (ContextDataFactory cdf : this.contextDataFactories) { cdf.importContextData(ctx, config); } }
java
public void importContext(Context ctx, Configuration config) throws ConfigurationException { validateContextNotNull(ctx); validateConfigNotNull(config); for (ContextDataFactory cdf : this.contextDataFactories) { cdf.importContextData(ctx, config); } }
[ "public", "void", "importContext", "(", "Context", "ctx", ",", "Configuration", "config", ")", "throws", "ConfigurationException", "{", "validateContextNotNull", "(", "ctx", ")", ";", "validateConfigNotNull", "(", "config", ")", ";", "for", "(", "ContextDataFactory"...
Import a context from the given configuration @param ctx the context to import the context data to. @param config the {@code Configuration} containing the context data. @throws ConfigurationException if an error occurred while reading the context data from the {@code Configuration}. @throws IllegalArgumentException (s...
[ "Import", "a", "context", "from", "the", "given", "configuration" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/Model.java#L561-L568
129,637
zaproxy/zaproxy
src/org/parosproxy/paros/model/Model.java
Model.exportContext
public void exportContext(Context ctx, Configuration config) { validateContextNotNull(ctx); validateConfigNotNull(config); for (ContextDataFactory cdf : this.contextDataFactories) { cdf.exportContextData(ctx, config); } }
java
public void exportContext(Context ctx, Configuration config) { validateContextNotNull(ctx); validateConfigNotNull(config); for (ContextDataFactory cdf : this.contextDataFactories) { cdf.exportContextData(ctx, config); } }
[ "public", "void", "exportContext", "(", "Context", "ctx", ",", "Configuration", "config", ")", "{", "validateContextNotNull", "(", "ctx", ")", ";", "validateConfigNotNull", "(", "config", ")", ";", "for", "(", "ContextDataFactory", "cdf", ":", "this", ".", "co...
Export a context into the given configuration @param ctx the context to export. @param config the {@code Configuration} where to export the context data. @throws IllegalArgumentException (since TODO add version) if the given context is {@code null}. @since 2.4.0
[ "Export", "a", "context", "into", "the", "given", "configuration" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/Model.java#L590-L597
129,638
zaproxy/zaproxy
src/org/zaproxy/zap/utils/PagingTableModel.java
PagingTableModel.getRowObject
protected T getRowObject(int rowIndex) { int pageIndex = rowIndex - dataOffset; if (pageIndex >= 0 && pageIndex < data.size()) { return data.get(pageIndex); } return null; }
java
protected T getRowObject(int rowIndex) { int pageIndex = rowIndex - dataOffset; if (pageIndex >= 0 && pageIndex < data.size()) { return data.get(pageIndex); } return null; }
[ "protected", "T", "getRowObject", "(", "int", "rowIndex", ")", "{", "int", "pageIndex", "=", "rowIndex", "-", "dataOffset", ";", "if", "(", "pageIndex", ">=", "0", "&&", "pageIndex", "<", "data", ".", "size", "(", ")", ")", "{", "return", "data", ".", ...
Gets the object at the given row. @param rowIndex the index of the row @return {@code null} if object is not in the current page
[ "Gets", "the", "object", "at", "the", "given", "row", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/utils/PagingTableModel.java#L265-L271
129,639
zaproxy/zaproxy
src/org/zaproxy/zap/spider/parser/SpiderHtmlFormParser.java
SpiderHtmlFormParser.notifyPostResourceFound
private void notifyPostResourceFound(HttpMessage message, int depth, String url, String requestBody) { log.debug("Submiting form with POST method and message body with form parameters (normal encoding): " + requestBody); notifyListenersPostResourceFound(message, depth + 1, url, requestBody); }
java
private void notifyPostResourceFound(HttpMessage message, int depth, String url, String requestBody) { log.debug("Submiting form with POST method and message body with form parameters (normal encoding): " + requestBody); notifyListenersPostResourceFound(message, depth + 1, url, requestBody); }
[ "private", "void", "notifyPostResourceFound", "(", "HttpMessage", "message", ",", "int", "depth", ",", "String", "url", ",", "String", "requestBody", ")", "{", "log", ".", "debug", "(", "\"Submiting form with POST method and message body with form parameters (normal encodin...
Notifies listeners that a new POST resource was found. @param message the source message @param depth the current depth @param url the URL of the resource @param requestBody the request body @see #notifyListenersPostResourceFound(HttpMessage, int, String, String)
[ "Notifies", "listeners", "that", "a", "new", "POST", "resource", "was", "found", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/parser/SpiderHtmlFormParser.java#L378-L381
129,640
zaproxy/zaproxy
src/org/zaproxy/zap/extension/encoder2/ExtensionEncoder2.java
ExtensionEncoder2.getPopupMenuEncode
private PopupEncoder2Menu getPopupMenuEncode() { if (popupEncodeMenu== null) { popupEncodeMenu = new PopupEncoder2Menu(); popupEncodeMenu.setText(Constant.messages.getString("enc2.popup")); popupEncodeMenu.addActionListener(new java.awt.event.ActionListener() { ...
java
private PopupEncoder2Menu getPopupMenuEncode() { if (popupEncodeMenu== null) { popupEncodeMenu = new PopupEncoder2Menu(); popupEncodeMenu.setText(Constant.messages.getString("enc2.popup")); popupEncodeMenu.addActionListener(new java.awt.event.ActionListener() { ...
[ "private", "PopupEncoder2Menu", "getPopupMenuEncode", "(", ")", "{", "if", "(", "popupEncodeMenu", "==", "null", ")", "{", "popupEncodeMenu", "=", "new", "PopupEncoder2Menu", "(", ")", ";", "popupEncodeMenu", ".", "setText", "(", "Constant", ".", "messages", "."...
This method initializes popupEncodeMenu @return org.parosproxy.paros.extension.ExtensionPopupMenu
[ "This", "method", "initializes", "popupEncodeMenu" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/encoder2/ExtensionEncoder2.java#L119-L132
129,641
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.getWorkPanel
@Override protected JPanel getWorkPanel() { if (mainPanel == null) { mainPanel = new JPanel(new BorderLayout()); tabbedPane = new JTabbedPane(); tabbedPane.addTab(Constant.messages.getString("spider.panel.tab.urls"), getUrlsTableScrollPane()); tabbedPane.addTab(Constant.messages.getString("spider...
java
@Override protected JPanel getWorkPanel() { if (mainPanel == null) { mainPanel = new JPanel(new BorderLayout()); tabbedPane = new JTabbedPane(); tabbedPane.addTab(Constant.messages.getString("spider.panel.tab.urls"), getUrlsTableScrollPane()); tabbedPane.addTab(Constant.messages.getString("spider...
[ "@", "Override", "protected", "JPanel", "getWorkPanel", "(", ")", "{", "if", "(", "mainPanel", "==", "null", ")", "{", "mainPanel", "=", "new", "JPanel", "(", "new", "BorderLayout", "(", ")", ")", ";", "tabbedPane", "=", "new", "JTabbedPane", "(", ")", ...
This method initializes the working Panel. @return javax.swing.JScrollPane
[ "This", "method", "initializes", "the", "working", "Panel", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L222-L236
129,642
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.getUrlsTable
private JXTable getUrlsTable() { if (urlsTable == null) { // Create the table with a default, empty TableModel and the proper settings urlsTable = new ZapTable(EMPTY_URLS_TABLE_MODEL); urlsTable.setColumnSelectionAllowed(false); urlsTable.setCellSelectionEnabled(false); urlsTable.setRowSelectionA...
java
private JXTable getUrlsTable() { if (urlsTable == null) { // Create the table with a default, empty TableModel and the proper settings urlsTable = new ZapTable(EMPTY_URLS_TABLE_MODEL); urlsTable.setColumnSelectionAllowed(false); urlsTable.setCellSelectionEnabled(false); urlsTable.setRowSelectionA...
[ "private", "JXTable", "getUrlsTable", "(", ")", "{", "if", "(", "urlsTable", "==", "null", ")", "{", "// Create the table with a default, empty TableModel and the proper settings\r", "urlsTable", "=", "new", "ZapTable", "(", "EMPTY_URLS_TABLE_MODEL", ")", ";", "urlsTable"...
Gets the scan results table. @return the scan results table
[ "Gets", "the", "scan", "results", "table", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L261-L300
129,643
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.getFoundCountNameLabel
private JLabel getFoundCountNameLabel() { if (foundCountNameLabel == null) { foundCountNameLabel = new JLabel(); foundCountNameLabel.setText(Constant.messages.getString("spider.toolbar.found.label")); } return foundCountNameLabel; }
java
private JLabel getFoundCountNameLabel() { if (foundCountNameLabel == null) { foundCountNameLabel = new JLabel(); foundCountNameLabel.setText(Constant.messages.getString("spider.toolbar.found.label")); } return foundCountNameLabel; }
[ "private", "JLabel", "getFoundCountNameLabel", "(", ")", "{", "if", "(", "foundCountNameLabel", "==", "null", ")", "{", "foundCountNameLabel", "=", "new", "JLabel", "(", ")", ";", "foundCountNameLabel", ".", "setText", "(", "Constant", ".", "messages", ".", "g...
Gets the label storing the name of the count of found URIs. @return the found count name label
[ "Gets", "the", "label", "storing", "the", "name", "of", "the", "count", "of", "found", "URIs", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L363-L369
129,644
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.getFoundCountValueLabel
private JLabel getFoundCountValueLabel() { if (foundCountValueLabel == null) { foundCountValueLabel = new JLabel(); foundCountValueLabel.setText(ZERO_REQUESTS_LABEL_TEXT); } return foundCountValueLabel; }
java
private JLabel getFoundCountValueLabel() { if (foundCountValueLabel == null) { foundCountValueLabel = new JLabel(); foundCountValueLabel.setText(ZERO_REQUESTS_LABEL_TEXT); } return foundCountValueLabel; }
[ "private", "JLabel", "getFoundCountValueLabel", "(", ")", "{", "if", "(", "foundCountValueLabel", "==", "null", ")", "{", "foundCountValueLabel", "=", "new", "JLabel", "(", ")", ";", "foundCountValueLabel", ".", "setText", "(", "ZERO_REQUESTS_LABEL_TEXT", ")", ";"...
Gets the label storing the value for count of found URIs. @return the found count value label
[ "Gets", "the", "label", "storing", "the", "value", "for", "count", "of", "found", "URIs", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L376-L382
129,645
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.getAddedCountNameLabel
private JLabel getAddedCountNameLabel() { if (addedCountNameLabel == null) { addedCountNameLabel = new JLabel(); addedCountNameLabel.setText(Constant.messages.getString("spider.toolbar.added.label")); } return addedCountNameLabel; }
java
private JLabel getAddedCountNameLabel() { if (addedCountNameLabel == null) { addedCountNameLabel = new JLabel(); addedCountNameLabel.setText(Constant.messages.getString("spider.toolbar.added.label")); } return addedCountNameLabel; }
[ "private", "JLabel", "getAddedCountNameLabel", "(", ")", "{", "if", "(", "addedCountNameLabel", "==", "null", ")", "{", "addedCountNameLabel", "=", "new", "JLabel", "(", ")", ";", "addedCountNameLabel", ".", "setText", "(", "Constant", ".", "messages", ".", "g...
Gets the label storing the name of the count of added URIs. @return the found count name label
[ "Gets", "the", "label", "storing", "the", "name", "of", "the", "count", "of", "added", "URIs", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L390-L396
129,646
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.getAddedCountValueLabel
private JLabel getAddedCountValueLabel() { if (addedCountValueLabel == null) { addedCountValueLabel = new JLabel(); addedCountValueLabel.setText(ZERO_REQUESTS_LABEL_TEXT); } return addedCountValueLabel; }
java
private JLabel getAddedCountValueLabel() { if (addedCountValueLabel == null) { addedCountValueLabel = new JLabel(); addedCountValueLabel.setText(ZERO_REQUESTS_LABEL_TEXT); } return addedCountValueLabel; }
[ "private", "JLabel", "getAddedCountValueLabel", "(", ")", "{", "if", "(", "addedCountValueLabel", "==", "null", ")", "{", "addedCountValueLabel", "=", "new", "JLabel", "(", ")", ";", "addedCountValueLabel", ".", "setText", "(", "ZERO_REQUESTS_LABEL_TEXT", ")", ";"...
Gets the label storing the value for count of added URIs. @return the added count value label
[ "Gets", "the", "label", "storing", "the", "value", "for", "count", "of", "added", "URIs", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L403-L409
129,647
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.updateFoundCount
protected void updateFoundCount() { SpiderScan sc = this.getSelectedScanner(); if (sc != null) { this.getFoundCountValueLabel().setText(Integer.toString(sc.getNumberOfURIsFound())); } else { this.getFoundCountValueLabel().setText(ZERO_REQUESTS_LABEL_TEXT); } }
java
protected void updateFoundCount() { SpiderScan sc = this.getSelectedScanner(); if (sc != null) { this.getFoundCountValueLabel().setText(Integer.toString(sc.getNumberOfURIsFound())); } else { this.getFoundCountValueLabel().setText(ZERO_REQUESTS_LABEL_TEXT); } }
[ "protected", "void", "updateFoundCount", "(", ")", "{", "SpiderScan", "sc", "=", "this", ".", "getSelectedScanner", "(", ")", ";", "if", "(", "sc", "!=", "null", ")", "{", "this", ".", "getFoundCountValueLabel", "(", ")", ".", "setText", "(", "Integer", ...
Update the count of found URIs.
[ "Update", "the", "count", "of", "found", "URIs", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L438-L445
129,648
zaproxy/zaproxy
src/org/zaproxy/zap/extension/spider/SpiderPanel.java
SpiderPanel.updateAddedCount
protected void updateAddedCount() { SpiderScan sc = this.getSelectedScanner(); if (sc != null) { this.getAddedCountValueLabel().setText(Integer.toString(sc.getNumberOfNodesAdded())); } else { this.getAddedCountValueLabel().setText(ZERO_REQUESTS_LABEL_TEXT); } }
java
protected void updateAddedCount() { SpiderScan sc = this.getSelectedScanner(); if (sc != null) { this.getAddedCountValueLabel().setText(Integer.toString(sc.getNumberOfNodesAdded())); } else { this.getAddedCountValueLabel().setText(ZERO_REQUESTS_LABEL_TEXT); } }
[ "protected", "void", "updateAddedCount", "(", ")", "{", "SpiderScan", "sc", "=", "this", ".", "getSelectedScanner", "(", ")", ";", "if", "(", "sc", "!=", "null", ")", "{", "this", ".", "getAddedCountValueLabel", "(", ")", ".", "setText", "(", "Integer", ...
Update the count of added nodes.
[ "Update", "the", "count", "of", "added", "nodes", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/spider/SpiderPanel.java#L450-L457
129,649
zaproxy/zaproxy
src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java
OptionsVariantPanel.initialize
private void initialize() { this.setLayout(new CardLayout()); this.setName(Constant.messages.getString("variant.options.title")); this.add(getPanelScanner(), getPanelScanner().getName()); }
java
private void initialize() { this.setLayout(new CardLayout()); this.setName(Constant.messages.getString("variant.options.title")); this.add(getPanelScanner(), getPanelScanner().getName()); }
[ "private", "void", "initialize", "(", ")", "{", "this", ".", "setLayout", "(", "new", "CardLayout", "(", ")", ")", ";", "this", ".", "setName", "(", "Constant", ".", "messages", ".", "getString", "(", "\"variant.options.title\"", ")", ")", ";", "this", "...
This method initializes the Panel
[ "This", "method", "initializes", "the", "Panel" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java#L122-L126
129,650
zaproxy/zaproxy
src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java
OptionsVariantPanel.saveParam
public void saveParam(ScannerParam param) { // Set Injectable Targets int targets = 0; if (this.getChkInjectableQueryString().isSelected()) { targets |= ScannerParam.TARGET_QUERYSTRING; } param.setAddQueryParam(getChkAddQueryParam().isS...
java
public void saveParam(ScannerParam param) { // Set Injectable Targets int targets = 0; if (this.getChkInjectableQueryString().isSelected()) { targets |= ScannerParam.TARGET_QUERYSTRING; } param.setAddQueryParam(getChkAddQueryParam().isS...
[ "public", "void", "saveParam", "(", "ScannerParam", "param", ")", "{", "// Set Injectable Targets\r", "int", "targets", "=", "0", ";", "if", "(", "this", ".", "getChkInjectableQueryString", "(", ")", ".", "isSelected", "(", ")", ")", "{", "targets", "|=", "S...
Saves the options shown in the panel to the given options object. @param param the options object where to save the options shown
[ "Saves", "the", "options", "shown", "in", "the", "panel", "to", "the", "given", "options", "object", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java#L275-L337
129,651
zaproxy/zaproxy
src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java
OptionsVariantPanel.setAllInjectableAndRPC
public void setAllInjectableAndRPC(boolean enabled) { this.getChkInjectableQueryString().setEnabled(enabled); this.getChkAddQueryParam().setEnabled(enabled && getChkInjectableQueryString().isSelected()); this.getChkInjectableUrlPath().setEnabled(enabled); this.getChkInjecta...
java
public void setAllInjectableAndRPC(boolean enabled) { this.getChkInjectableQueryString().setEnabled(enabled); this.getChkAddQueryParam().setEnabled(enabled && getChkInjectableQueryString().isSelected()); this.getChkInjectableUrlPath().setEnabled(enabled); this.getChkInjecta...
[ "public", "void", "setAllInjectableAndRPC", "(", "boolean", "enabled", ")", "{", "this", ".", "getChkInjectableQueryString", "(", ")", ".", "setEnabled", "(", "enabled", ")", ";", "this", ".", "getChkAddQueryParam", "(", ")", ".", "setEnabled", "(", "enabled", ...
Set all checkbox to a specific value @param enabled true if all the checkbox should be enabled, false otherwise @see #setReasonVariantsDisabled(String)
[ "Set", "all", "checkbox", "to", "a", "specific", "value" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java#L344-L365
129,652
zaproxy/zaproxy
src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java
OptionsVariantPanel.setReasonVariantsDisabled
public void setReasonVariantsDisabled(String reason) { reasonVariantsDisabled = Objects.requireNonNull(reason); labelReasonVariantsDisabled.setText(reasonVariantsDisabled); if (reasonVariantsDisabled.isEmpty() && labelReasonVariantsDisabled.isVisible()) { labelReasonVariantsDis...
java
public void setReasonVariantsDisabled(String reason) { reasonVariantsDisabled = Objects.requireNonNull(reason); labelReasonVariantsDisabled.setText(reasonVariantsDisabled); if (reasonVariantsDisabled.isEmpty() && labelReasonVariantsDisabled.isVisible()) { labelReasonVariantsDis...
[ "public", "void", "setReasonVariantsDisabled", "(", "String", "reason", ")", "{", "reasonVariantsDisabled", "=", "Objects", ".", "requireNonNull", "(", "reason", ")", ";", "labelReasonVariantsDisabled", ".", "setText", "(", "reasonVariantsDisabled", ")", ";", "if", ...
Sets the reason to show when the the variants are disabled. @param reason the reason that indicates why the variants are disabled. @since TODO add version @throws NullPointerException if the given {@code reason} is {@code null}. @see #setAllInjectableAndRPC(boolean)
[ "Sets", "the", "reason", "to", "show", "when", "the", "the", "variants", "are", "disabled", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/ascan/OptionsVariantPanel.java#L392-L399
129,653
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/ApiImplementor.java
ApiImplementor.handleApiView
public ApiResponse handleApiView(String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_VIEW, name); }
java
public ApiResponse handleApiView(String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_VIEW, name); }
[ "public", "ApiResponse", "handleApiView", "(", "String", "name", ",", "JSONObject", "params", ")", "throws", "ApiException", "{", "throw", "new", "ApiException", "(", "ApiException", ".", "Type", ".", "BAD_VIEW", ",", "name", ")", ";", "}" ]
Override if implementing one or more views @param name the name of the requested view @param params the API request parameters @return the API response @throws ApiException if an error occurred while handling the API view endpoint
[ "Override", "if", "implementing", "one", "or", "more", "views" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/ApiImplementor.java#L324-L326
129,654
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/ApiImplementor.java
ApiImplementor.handleApiAction
public ApiResponse handleApiAction(String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_ACTION, name); }
java
public ApiResponse handleApiAction(String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_ACTION, name); }
[ "public", "ApiResponse", "handleApiAction", "(", "String", "name", ",", "JSONObject", "params", ")", "throws", "ApiException", "{", "throw", "new", "ApiException", "(", "ApiException", ".", "Type", ".", "BAD_ACTION", ",", "name", ")", ";", "}" ]
Override if implementing one or more actions @param name the name of the requested action @param params the API request parameters @return the API response @throws ApiException if an error occurred while handling the API action endpoint
[ "Override", "if", "implementing", "one", "or", "more", "actions" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/ApiImplementor.java#L335-L337
129,655
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/ApiImplementor.java
ApiImplementor.handleApiOther
public HttpMessage handleApiOther(HttpMessage msg, String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_OTHER, name); }
java
public HttpMessage handleApiOther(HttpMessage msg, String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_OTHER, name); }
[ "public", "HttpMessage", "handleApiOther", "(", "HttpMessage", "msg", ",", "String", "name", ",", "JSONObject", "params", ")", "throws", "ApiException", "{", "throw", "new", "ApiException", "(", "ApiException", ".", "Type", ".", "BAD_OTHER", ",", "name", ")", ...
Override if implementing one or more 'other' operations - these are operations that _dont_ return structured data @param msg the HTTP message containing the API request @param name the name of the requested other endpoint @param params the API request parameters @return the HTTP message with the API response @throws Ap...
[ "Override", "if", "implementing", "one", "or", "more", "other", "operations", "-", "these", "are", "operations", "that", "_dont_", "return", "structured", "data" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/ApiImplementor.java#L347-L349
129,656
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/ApiImplementor.java
ApiImplementor.handleApiPersistentConnection
public void handleApiPersistentConnection(HttpMessage msg, HttpInputStream httpIn, HttpOutputStream httpOut, String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_PCONN, name); }
java
public void handleApiPersistentConnection(HttpMessage msg, HttpInputStream httpIn, HttpOutputStream httpOut, String name, JSONObject params) throws ApiException { throw new ApiException(ApiException.Type.BAD_PCONN, name); }
[ "public", "void", "handleApiPersistentConnection", "(", "HttpMessage", "msg", ",", "HttpInputStream", "httpIn", ",", "HttpOutputStream", "httpOut", ",", "String", "name", ",", "JSONObject", "params", ")", "throws", "ApiException", "{", "throw", "new", "ApiException", ...
Override if implementing one or more 'persistent connection' operations. These are operations that maintain long running connections, potentially staying alive as long as the client holds them open. @param msg the HTTP message containing the API request @param httpIn the input stream @param httpOut the output stream @p...
[ "Override", "if", "implementing", "one", "or", "more", "persistent", "connection", "operations", ".", "These", "are", "operations", "that", "maintain", "long", "running", "connections", "potentially", "staying", "alive", "as", "long", "as", "the", "client", "holds...
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/ApiImplementor.java#L362-L366
129,657
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/ApiImplementor.java
ApiImplementor.handleCallBack
public String handleCallBack(HttpMessage msg) throws ApiException { throw new ApiException (ApiException.Type.URL_NOT_FOUND, msg.getRequestHeader().getURI().toString()); }
java
public String handleCallBack(HttpMessage msg) throws ApiException { throw new ApiException (ApiException.Type.URL_NOT_FOUND, msg.getRequestHeader().getURI().toString()); }
[ "public", "String", "handleCallBack", "(", "HttpMessage", "msg", ")", "throws", "ApiException", "{", "throw", "new", "ApiException", "(", "ApiException", ".", "Type", ".", "URL_NOT_FOUND", ",", "msg", ".", "getRequestHeader", "(", ")", ".", "getURI", "(", ")",...
Override if handling callbacks @param msg the HTTP message containing the API request and response @return the API response (set in the HTTP response body) @throws ApiException if an error occurred while handling the API callback
[ "Override", "if", "handling", "callbacks" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/ApiImplementor.java#L374-L376
129,658
zaproxy/zaproxy
src/org/zaproxy/zap/spider/parser/SpiderParser.java
SpiderParser.notifyListenersResourceFound
protected void notifyListenersResourceFound(HttpMessage message, int depth, String uri) { for (SpiderParserListener l : listeners) { l.resourceURIFound(message, depth, uri); } }
java
protected void notifyListenersResourceFound(HttpMessage message, int depth, String uri) { for (SpiderParserListener l : listeners) { l.resourceURIFound(message, depth, uri); } }
[ "protected", "void", "notifyListenersResourceFound", "(", "HttpMessage", "message", ",", "int", "depth", ",", "String", "uri", ")", "{", "for", "(", "SpiderParserListener", "l", ":", "listeners", ")", "{", "l", ".", "resourceURIFound", "(", "message", ",", "de...
Notify the listeners that a resource was found. @param message the http message containing the response. @param depth the depth of this resource in the crawling tree @param uri the uri
[ "Notify", "the", "listeners", "that", "a", "resource", "was", "found", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/parser/SpiderParser.java#L67-L71
129,659
zaproxy/zaproxy
src/org/zaproxy/zap/spider/parser/SpiderParser.java
SpiderParser.processURL
protected void processURL(HttpMessage message, int depth, String localURL, String baseURL) { // Build the absolute canonical URL String fullURL = URLCanonicalizer.getCanonicalURL(localURL, baseURL); if (fullURL == null) { return; } log.debug("Canonical URL constructed using '" + localURL + "': " + fullURL...
java
protected void processURL(HttpMessage message, int depth, String localURL, String baseURL) { // Build the absolute canonical URL String fullURL = URLCanonicalizer.getCanonicalURL(localURL, baseURL); if (fullURL == null) { return; } log.debug("Canonical URL constructed using '" + localURL + "': " + fullURL...
[ "protected", "void", "processURL", "(", "HttpMessage", "message", ",", "int", "depth", ",", "String", "localURL", ",", "String", "baseURL", ")", "{", "// Build the absolute canonical URL", "String", "fullURL", "=", "URLCanonicalizer", ".", "getCanonicalURL", "(", "l...
Builds an url and notifies the listeners. @param message the message @param depth the depth @param localURL the local url @param baseURL the base url
[ "Builds", "an", "url", "and", "notifies", "the", "listeners", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/spider/parser/SpiderParser.java#L97-L106
129,660
zaproxy/zaproxy
src/org/zaproxy/zap/extension/alert/AlertTreeCellRenderer.java
AlertTreeCellRenderer.getTreeCellRendererComponent
@Override public Component getTreeCellRendererComponent( JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, lea...
java
@Override public Component getTreeCellRendererComponent( JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, lea...
[ "@", "Override", "public", "Component", "getTreeCellRendererComponent", "(", "JTree", "tree", ",", "Object", "value", ",", "boolean", "sel", ",", "boolean", "expanded", ",", "boolean", "leaf", ",", "int", "row", ",", "boolean", "hasFocus", ")", "{", "super", ...
Sets the relevant tree icons.
[ "Sets", "the", "relevant", "tree", "icons", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/alert/AlertTreeCellRenderer.java#L50-L79
129,661
zaproxy/zaproxy
src/org/zaproxy/zap/session/CookieBasedSessionManagementHelper.java
CookieBasedSessionManagementHelper.getMatchingHttpSession
public static HttpSession getMatchingHttpSession(final Collection<HttpSession> sessions, List<HttpCookie> cookies, final HttpSessionTokensSet siteTokens) { // Pre-checks if (sessions.isEmpty()) { return null; } List<HttpSession> matchingSessions = new LinkedList<>(sessions); for (String token : siteTo...
java
public static HttpSession getMatchingHttpSession(final Collection<HttpSession> sessions, List<HttpCookie> cookies, final HttpSessionTokensSet siteTokens) { // Pre-checks if (sessions.isEmpty()) { return null; } List<HttpSession> matchingSessions = new LinkedList<>(sessions); for (String token : siteTo...
[ "public", "static", "HttpSession", "getMatchingHttpSession", "(", "final", "Collection", "<", "HttpSession", ">", "sessions", ",", "List", "<", "HttpCookie", ">", "cookies", ",", "final", "HttpSessionTokensSet", "siteTokens", ")", "{", "// Pre-checks", "if", "(", ...
Gets the matching http session, if any, for a particular message containing a list of cookies, from a set of sessions. @param sessions the existing sessions @param cookies the cookies present in the request header of the message @param siteTokens the tokens @return the matching http session, if any, or null if no exis...
[ "Gets", "the", "matching", "http", "session", "if", "any", "for", "a", "particular", "message", "containing", "a", "list", "of", "cookies", "from", "a", "set", "of", "sessions", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/session/CookieBasedSessionManagementHelper.java#L127-L162
129,662
zaproxy/zaproxy
src/org/parosproxy/paros/core/scanner/VariantURLQuery.java
VariantURLQuery.getEscapedValue
@Override protected String getEscapedValue(HttpMessage msg, String value) { // ZAP: unfortunately the method setQuery() defined inside the httpclient Apache component // create trouble when special characters like ?+? are set inside the parameter, // because this method implementation s...
java
@Override protected String getEscapedValue(HttpMessage msg, String value) { // ZAP: unfortunately the method setQuery() defined inside the httpclient Apache component // create trouble when special characters like ?+? are set inside the parameter, // because this method implementation s...
[ "@", "Override", "protected", "String", "getEscapedValue", "(", "HttpMessage", "msg", ",", "String", "value", ")", "{", "// ZAP: unfortunately the method setQuery() defined inside the httpclient Apache component\r", "// create trouble when special characters like ?+? are set inside the p...
Encode the parameter for a correct URL introduction @param msg the message object @param value the value that need to be encoded @return the Encoded value
[ "Encode", "the", "parameter", "for", "a", "correct", "URL", "introduction" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/core/scanner/VariantURLQuery.java#L51-L59
129,663
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/GoAPIGenerator.java
GoAPIGenerator.writeOutArgs
private void writeOutArgs(List<String> elements, Writer out, boolean hasParams) throws IOException { if (elements != null && elements.size() > 0) { ArrayList<String> args = new ArrayList<String>(); for (String param : elements) { if (param.equalsIgnoreCase("boolean")) { args.add("boolean bool"); } ...
java
private void writeOutArgs(List<String> elements, Writer out, boolean hasParams) throws IOException { if (elements != null && elements.size() > 0) { ArrayList<String> args = new ArrayList<String>(); for (String param : elements) { if (param.equalsIgnoreCase("boolean")) { args.add("boolean bool"); } ...
[ "private", "void", "writeOutArgs", "(", "List", "<", "String", ">", "elements", ",", "Writer", "out", ",", "boolean", "hasParams", ")", "throws", "IOException", "{", "if", "(", "elements", "!=", "null", "&&", "elements", ".", "size", "(", ")", ">", "0", ...
Writes the function arguments
[ "Writes", "the", "function", "arguments" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/GoAPIGenerator.java#L202-L220
129,664
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/GoAPIGenerator.java
GoAPIGenerator.writeOutRequestParams
private void writeOutRequestParams(List<String> elements, Writer out) throws IOException { if (elements != null && elements.size() > 0) { for (String param : elements) { out.write("\n\t\t\"" + param + "\": "); if (param.equalsIgnoreCase("boolean")) { addImports = true; out.write("strconv.FormatBo...
java
private void writeOutRequestParams(List<String> elements, Writer out) throws IOException { if (elements != null && elements.size() > 0) { for (String param : elements) { out.write("\n\t\t\"" + param + "\": "); if (param.equalsIgnoreCase("boolean")) { addImports = true; out.write("strconv.FormatBo...
[ "private", "void", "writeOutRequestParams", "(", "List", "<", "String", ">", "elements", ",", "Writer", "out", ")", "throws", "IOException", "{", "if", "(", "elements", "!=", "null", "&&", "elements", ".", "size", "(", ")", ">", "0", ")", "{", "for", "...
Writes the request parameters
[ "Writes", "the", "request", "parameters" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/GoAPIGenerator.java#L223-L243
129,665
zaproxy/zaproxy
src/org/zaproxy/zap/extension/api/GoAPIGenerator.java
GoAPIGenerator.addImports
private static void addImports(Path file, boolean addImports) throws IOException { Charset charset = StandardCharsets.UTF_8; String content = new String(Files.readAllBytes(file), charset); if (addImports) { content = content.replaceAll("_imports_", "import \"strconv\"\n\n"); } else { content = content.rep...
java
private static void addImports(Path file, boolean addImports) throws IOException { Charset charset = StandardCharsets.UTF_8; String content = new String(Files.readAllBytes(file), charset); if (addImports) { content = content.replaceAll("_imports_", "import \"strconv\"\n\n"); } else { content = content.rep...
[ "private", "static", "void", "addImports", "(", "Path", "file", ",", "boolean", "addImports", ")", "throws", "IOException", "{", "Charset", "charset", "=", "StandardCharsets", ".", "UTF_8", ";", "String", "content", "=", "new", "String", "(", "Files", ".", "...
or removes it in case there isn't any packages to import
[ "or", "removes", "it", "in", "case", "there", "isn", "t", "any", "packages", "to", "import" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/api/GoAPIGenerator.java#L291-L300
129,666
zaproxy/zaproxy
src/org/parosproxy/paros/model/SiteNode.java
SiteNode.getCustomIcons
public List<ImageIcon> getCustomIcons() { List<ImageIcon> iconList = new ArrayList<ImageIcon>(); if (justSpidered) { iconList.add(new ImageIcon(Constant.class.getResource("/resource/icon/10/spider.png"))); } synchronized (this.icons) { if (!this.icons.isEm...
java
public List<ImageIcon> getCustomIcons() { List<ImageIcon> iconList = new ArrayList<ImageIcon>(); if (justSpidered) { iconList.add(new ImageIcon(Constant.class.getResource("/resource/icon/10/spider.png"))); } synchronized (this.icons) { if (!this.icons.isEm...
[ "public", "List", "<", "ImageIcon", ">", "getCustomIcons", "(", ")", "{", "List", "<", "ImageIcon", ">", "iconList", "=", "new", "ArrayList", "<", "ImageIcon", ">", "(", ")", ";", "if", "(", "justSpidered", ")", "{", "iconList", ".", "add", "(", "new",...
Gets any custom icons that have been set for this node @return any custom icons that have been set for this node @since 2.6.0
[ "Gets", "any", "custom", "icons", "that", "have", "been", "set", "for", "this", "node" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/SiteNode.java#L163-L188
129,667
zaproxy/zaproxy
src/org/parosproxy/paros/model/SiteNode.java
SiteNode.setHistoryReference
public void setHistoryReference(HistoryReference historyReference) { if (getHistoryReference() != null) { // if (getHistoryReference().getHistoryType() == HistoryReference.TYPE_SPIDER) { // getHistoryReference().delete(); // getHistoryReference().setSiteNode(n...
java
public void setHistoryReference(HistoryReference historyReference) { if (getHistoryReference() != null) { // if (getHistoryReference().getHistoryType() == HistoryReference.TYPE_SPIDER) { // getHistoryReference().delete(); // getHistoryReference().setSiteNode(n...
[ "public", "void", "setHistoryReference", "(", "HistoryReference", "historyReference", ")", "{", "if", "(", "getHistoryReference", "(", ")", "!=", "null", ")", "{", "// if (getHistoryReference().getHistoryType() == HistoryReference.TYPE_SPIDER) {\r", "// ...
Set current node reference. If there is any existing reference, delete if spider record. Otherwise, put into past history list. @param historyReference
[ "Set", "current", "node", "reference", ".", "If", "there", "is", "any", "existing", "reference", "delete", "if", "spider", "record", ".", "Otherwise", "put", "into", "past", "history", "list", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/SiteNode.java#L339-L380
129,668
zaproxy/zaproxy
src/org/parosproxy/paros/model/SiteNode.java
SiteNode.deleteAllAlerts
public void deleteAllAlerts() { for(int i = 0; i < getChildCount(); i++) { ((SiteNode) getChildAt(i)).deleteAllAlerts(); } if (!alerts.isEmpty()) { alerts.clear(); highestAlert = null; calculateHighestAlert = false; if (this.site...
java
public void deleteAllAlerts() { for(int i = 0; i < getChildCount(); i++) { ((SiteNode) getChildAt(i)).deleteAllAlerts(); } if (!alerts.isEmpty()) { alerts.clear(); highestAlert = null; calculateHighestAlert = false; if (this.site...
[ "public", "void", "deleteAllAlerts", "(", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "getChildCount", "(", ")", ";", "i", "++", ")", "{", "(", "(", "SiteNode", ")", "getChildAt", "(", "i", ")", ")", ".", "deleteAllAlerts", "(", ")...
Deletes all alerts of this node and all child nodes recursively.
[ "Deletes", "all", "alerts", "of", "this", "node", "and", "all", "child", "nodes", "recursively", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/SiteNode.java#L559-L574
129,669
zaproxy/zaproxy
src/org/parosproxy/paros/model/HistoryReference.java
HistoryReference.getHttpMessage
public HttpMessage getHttpMessage() throws HttpMalformedHeaderException, DatabaseException { if (httpMessage != null) { return httpMessage; } // fetch complete message RecordHistory history = staticTableHistory.read(historyId); if (history == null) { throw new HttpMalformedHeaderException("No h...
java
public HttpMessage getHttpMessage() throws HttpMalformedHeaderException, DatabaseException { if (httpMessage != null) { return httpMessage; } // fetch complete message RecordHistory history = staticTableHistory.read(historyId); if (history == null) { throw new HttpMalformedHeaderException("No h...
[ "public", "HttpMessage", "getHttpMessage", "(", ")", "throws", "HttpMalformedHeaderException", ",", "DatabaseException", "{", "if", "(", "httpMessage", "!=", "null", ")", "{", "return", "httpMessage", ";", "}", "// fetch complete message\r", "RecordHistory", "history", ...
Gets the corresponding http message from the database. Try to minimise calls to this method as much as possible. But also dont cache the HttpMessage either as this can significantly increase ZAP's memory usage. @return the http message @throws HttpMalformedHeaderException the http malformed header exception @throws SQ...
[ "Gets", "the", "corresponding", "http", "message", "from", "the", "database", ".", "Try", "to", "minimise", "calls", "to", "this", "method", "as", "much", "as", "possible", ".", "But", "also", "dont", "cache", "the", "HttpMessage", "either", "as", "this", ...
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/HistoryReference.java#L450-L463
129,670
zaproxy/zaproxy
src/org/parosproxy/paros/model/HistoryReference.java
HistoryReference.setTags
public void setTags(List<String> tags) { if (tags == null) { throw new IllegalArgumentException("Parameter tags must not be null."); } for (String tag : tags) { if (!this.tags.contains(tag)) { insertTagDb(tag); } } for (String tag : this.tags) { if (!tags.contains(tag)) { de...
java
public void setTags(List<String> tags) { if (tags == null) { throw new IllegalArgumentException("Parameter tags must not be null."); } for (String tag : tags) { if (!this.tags.contains(tag)) { insertTagDb(tag); } } for (String tag : this.tags) { if (!tags.contains(tag)) { de...
[ "public", "void", "setTags", "(", "List", "<", "String", ">", "tags", ")", "{", "if", "(", "tags", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Parameter tags must not be null.\"", ")", ";", "}", "for", "(", "String", "tag", ...
Sets the tags for the HTTP message. @param tags the new tags. @throws IllegalArgumentException if the given parameter is {@code null}. @since 2.7.0 @see #addTag(String) @see #deleteTag(String)
[ "Sets", "the", "tags", "for", "the", "HTTP", "message", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/HistoryReference.java#L761-L780
129,671
zaproxy/zaproxy
src/org/parosproxy/paros/model/HistoryReference.java
HistoryReference.getTags
public static List<String> getTags(int historyId) throws DatabaseException { if (staticTableTag == null) { return new ArrayList<>(); } List<String> tags = new ArrayList<>(); List<RecordTag> rtags = staticTableTag.getTagsForHistoryID(historyId); for (RecordTag rtag : rtags) { tags.add(rtag.getTa...
java
public static List<String> getTags(int historyId) throws DatabaseException { if (staticTableTag == null) { return new ArrayList<>(); } List<String> tags = new ArrayList<>(); List<RecordTag> rtags = staticTableTag.getTagsForHistoryID(historyId); for (RecordTag rtag : rtags) { tags.add(rtag.getTa...
[ "public", "static", "List", "<", "String", ">", "getTags", "(", "int", "historyId", ")", "throws", "DatabaseException", "{", "if", "(", "staticTableTag", "==", "null", ")", "{", "return", "new", "ArrayList", "<>", "(", ")", ";", "}", "List", "<", "String...
Gets the tags of the message with the given history ID. @param historyId the history ID. @return a {@code List} with the tags of the message, never {@code null}. @throws DatabaseException if an error occurred while obtaining the tags from the database. @since 2.7.0
[ "Gets", "the", "tags", "of", "the", "message", "with", "the", "given", "history", "ID", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/model/HistoryReference.java#L900-L911
129,672
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.encode
protected static char[] encode(String original, BitSet allowed, String charset) throws URIException { if (original == null) { throw new IllegalArgumentException("Original string may not be null"); } if (allowed == null) { throw new IllegalArgumentException("Al...
java
protected static char[] encode(String original, BitSet allowed, String charset) throws URIException { if (original == null) { throw new IllegalArgumentException("Original string may not be null"); } if (allowed == null) { throw new IllegalArgumentException("Al...
[ "protected", "static", "char", "[", "]", "encode", "(", "String", "original", ",", "BitSet", "allowed", ",", "String", "charset", ")", "throws", "URIException", "{", "if", "(", "original", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "...
Encodes URI string. This is a two mapping, one from original characters to octets, and subsequently a second from octets to URI characters: <p><blockquote><pre> original character sequence-&gt;octet sequence-&gt;URI character sequence </pre></blockquote><p> An escaped octet is encoded as a character triplet, consisti...
[ "Encodes", "URI", "string", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L1705-L1715
129,673
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.prevalidate
protected boolean prevalidate(String component, BitSet disallowed) { // prevalidate the given component by disallowed characters if (component == null) { return false; // undefined } char[] target = component.toCharArray(); for (int i = 0; i < target.length; i++) { ...
java
protected boolean prevalidate(String component, BitSet disallowed) { // prevalidate the given component by disallowed characters if (component == null) { return false; // undefined } char[] target = component.toCharArray(); for (int i = 0; i < target.length; i++) { ...
[ "protected", "boolean", "prevalidate", "(", "String", "component", ",", "BitSet", "disallowed", ")", "{", "// prevalidate the given component by disallowed characters", "if", "(", "component", "==", "null", ")", "{", "return", "false", ";", "// undefined", "}", "char"...
Pre-validate the unescaped URI string within a specific component. @param component the component string within the component @param disallowed those characters disallowed within the component @return if true, it doesn't have the disallowed characters if false, the component is undefined or an incorrect one
[ "Pre", "-", "validate", "the", "unescaped", "URI", "string", "within", "a", "specific", "component", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L1808-L1820
129,674
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.indexFirstOf
protected int indexFirstOf(char[] s, char delim, int offset) { if (s == null || s.length == 0) { return -1; } // check boundaries if (offset < 0) { offset = 0; } else if (offset > s.length) { return -1; } for (int i = offset; i ...
java
protected int indexFirstOf(char[] s, char delim, int offset) { if (s == null || s.length == 0) { return -1; } // check boundaries if (offset < 0) { offset = 0; } else if (offset > s.length) { return -1; } for (int i = offset; i ...
[ "protected", "int", "indexFirstOf", "(", "char", "[", "]", "s", ",", "char", "delim", ",", "int", "offset", ")", "{", "if", "(", "s", "==", "null", "||", "s", ".", "length", "==", "0", ")", "{", "return", "-", "1", ";", "}", "// check boundaries", ...
Get the earlier index that to be searched for the first occurrance in one of any of the given array. @param s the character array to be indexed @param delim the delimiter used to index @param offset The offset. @return the ealier index if there is a delimiter
[ "Get", "the", "earlier", "index", "that", "to", "be", "searched", "for", "the", "first", "occurrance", "in", "one", "of", "any", "of", "the", "given", "array", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2170-L2186
129,675
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.parseAuthority
protected void parseAuthority(String original, boolean escaped) throws URIException { // Reset flags _is_reg_name = _is_server = _is_hostname = _is_IPv4address = _is_IPv6reference = false; // set the charset to do escape encoding String charset = getProtocolCharset(); ...
java
protected void parseAuthority(String original, boolean escaped) throws URIException { // Reset flags _is_reg_name = _is_server = _is_hostname = _is_IPv4address = _is_IPv6reference = false; // set the charset to do escape encoding String charset = getProtocolCharset(); ...
[ "protected", "void", "parseAuthority", "(", "String", "original", ",", "boolean", "escaped", ")", "throws", "URIException", "{", "// Reset flags", "_is_reg_name", "=", "_is_server", "=", "_is_hostname", "=", "_is_IPv4address", "=", "_is_IPv6reference", "=", "false", ...
Parse the authority component. @param original the original character sequence of authority component @param escaped <code>true</code> if <code>original</code> is escaped @throws URIException If an error occurs.
[ "Parse", "the", "authority", "component", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2196-L2290
129,676
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setURI
protected void setURI() { // set _uri StringBuffer buf = new StringBuffer(); // ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))? if (_scheme != null) { buf.append(_scheme); buf.append(':'); } if (_is_net_path) { buf.append("//"...
java
protected void setURI() { // set _uri StringBuffer buf = new StringBuffer(); // ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))? if (_scheme != null) { buf.append(_scheme); buf.append(':'); } if (_is_net_path) { buf.append("//"...
[ "protected", "void", "setURI", "(", ")", "{", "// set _uri", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", ")", ";", "// ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?", "if", "(", "_scheme", "!=", "null", ")", "{", "buf", ".", "append", "(",...
Once it's parsed successfully, set this URI. @see #getRawURI
[ "Once", "it", "s", "parsed", "successfully", "set", "this", "URI", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2298-L2327
129,677
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setRawPath
public void setRawPath(char[] escapedPath) throws URIException { if (escapedPath == null || escapedPath.length == 0) { _path = _opaque = escapedPath; setURI(); return; } // remove the fragment identifier escapedPath = removeFragmentIdentifier(escapedPa...
java
public void setRawPath(char[] escapedPath) throws URIException { if (escapedPath == null || escapedPath.length == 0) { _path = _opaque = escapedPath; setURI(); return; } // remove the fragment identifier escapedPath = removeFragmentIdentifier(escapedPa...
[ "public", "void", "setRawPath", "(", "char", "[", "]", "escapedPath", ")", "throws", "URIException", "{", "if", "(", "escapedPath", "==", "null", "||", "escapedPath", ".", "length", "==", "0", ")", "{", "_path", "=", "_opaque", "=", "escapedPath", ";", "...
Set the raw-escaped path. @param escapedPath the path character sequence @throws URIException encoding error or not proper for initial instance @see #encode
[ "Set", "the", "raw", "-", "escaped", "path", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2844-L2886
129,678
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setEscapedPath
public void setEscapedPath(String escapedPath) throws URIException { if (escapedPath == null) { _path = _opaque = null; setURI(); return; } setRawPath(escapedPath.toCharArray()); }
java
public void setEscapedPath(String escapedPath) throws URIException { if (escapedPath == null) { _path = _opaque = null; setURI(); return; } setRawPath(escapedPath.toCharArray()); }
[ "public", "void", "setEscapedPath", "(", "String", "escapedPath", ")", "throws", "URIException", "{", "if", "(", "escapedPath", "==", "null", ")", "{", "_path", "=", "_opaque", "=", "null", ";", "setURI", "(", ")", ";", "return", ";", "}", "setRawPath", ...
Set the escaped path. @param escapedPath the escaped path string @throws URIException encoding error or not proper for initial instance @see #encode
[ "Set", "the", "escaped", "path", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2896-L2903
129,679
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setPath
public void setPath(String path) throws URIException { if (path == null || path.length() == 0) { _path = _opaque = (path == null) ? null : path.toCharArray(); setURI(); return; } // set the charset to do escape encoding String charset = getProtocolCha...
java
public void setPath(String path) throws URIException { if (path == null || path.length() == 0) { _path = _opaque = (path == null) ? null : path.toCharArray(); setURI(); return; } // set the charset to do escape encoding String charset = getProtocolCha...
[ "public", "void", "setPath", "(", "String", "path", ")", "throws", "URIException", "{", "if", "(", "path", "==", "null", "||", "path", ".", "length", "(", ")", "==", "0", ")", "{", "_path", "=", "_opaque", "=", "(", "path", "==", "null", ")", "?", ...
Set the path. @param path the path string @throws URIException set incorrectly or fragment only @see #encode
[ "Set", "the", "path", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2913-L2950
129,680
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.resolvePath
protected char[] resolvePath(char[] basePath, char[] relPath) throws URIException { // REMINDME: paths are never null String base = (basePath == null) ? "" : new String(basePath); // _path could be empty if (relPath == null || relPath.length == 0) { return normalize...
java
protected char[] resolvePath(char[] basePath, char[] relPath) throws URIException { // REMINDME: paths are never null String base = (basePath == null) ? "" : new String(basePath); // _path could be empty if (relPath == null || relPath.length == 0) { return normalize...
[ "protected", "char", "[", "]", "resolvePath", "(", "char", "[", "]", "basePath", ",", "char", "[", "]", "relPath", ")", "throws", "URIException", "{", "// REMINDME: paths are never null", "String", "base", "=", "(", "basePath", "==", "null", ")", "?", "\"\""...
Resolve the base and relative path. @param basePath a character array of the basePath @param relPath a character array of the relPath @return the resolved path @throws URIException no more higher path level to be resolved
[ "Resolve", "the", "base", "and", "relative", "path", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L2961-L2983
129,681
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getEscapedCurrentHierPath
public String getEscapedCurrentHierPath() throws URIException { char[] path = getRawCurrentHierPath(); return (path == null) ? null : new String(path); }
java
public String getEscapedCurrentHierPath() throws URIException { char[] path = getRawCurrentHierPath(); return (path == null) ? null : new String(path); }
[ "public", "String", "getEscapedCurrentHierPath", "(", ")", "throws", "URIException", "{", "char", "[", "]", "path", "=", "getRawCurrentHierPath", "(", ")", ";", "return", "(", "path", "==", "null", ")", "?", "null", ":", "new", "String", "(", "path", ")", ...
Get the escaped current hierarchy level. @return the escaped current hierarchy level @throws URIException If {@link #getRawCurrentHierPath(char[])} fails.
[ "Get", "the", "escaped", "current", "hierarchy", "level", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3033-L3036
129,682
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getCurrentHierPath
public String getCurrentHierPath() throws URIException { char[] path = getRawCurrentHierPath(); return (path == null) ? null : decode(path, getProtocolCharset()); }
java
public String getCurrentHierPath() throws URIException { char[] path = getRawCurrentHierPath(); return (path == null) ? null : decode(path, getProtocolCharset()); }
[ "public", "String", "getCurrentHierPath", "(", ")", "throws", "URIException", "{", "char", "[", "]", "path", "=", "getRawCurrentHierPath", "(", ")", ";", "return", "(", "path", "==", "null", ")", "?", "null", ":", "decode", "(", "path", ",", "getProtocolCh...
Get the current hierarchy level. @return the current hierarchy level @throws URIException If {@link #getRawCurrentHierPath(char[])} fails. @see #decode
[ "Get", "the", "current", "hierarchy", "level", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3046-L3049
129,683
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getRawName
public char[] getRawName() { if (_path == null) { return null; } int at = 0; for (int i = _path.length - 1; i >= 0; i--) { if (_path[i] == '/') { at = i + 1; break; } } int len = _path.length - at; ...
java
public char[] getRawName() { if (_path == null) { return null; } int at = 0; for (int i = _path.length - 1; i >= 0; i--) { if (_path[i] == '/') { at = i + 1; break; } } int len = _path.length - at; ...
[ "public", "char", "[", "]", "getRawName", "(", ")", "{", "if", "(", "_path", "==", "null", ")", "{", "return", "null", ";", "}", "int", "at", "=", "0", ";", "for", "(", "int", "i", "=", "_path", ".", "length", "-", "1", ";", "i", ">=", "0", ...
Get the raw-escaped basename of the path. @return the raw-escaped basename
[ "Get", "the", "raw", "-", "escaped", "basename", "of", "the", "path", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3138-L3154
129,684
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getName
public String getName() throws URIException { char[] basename = getRawName(); return (basename == null) ? null : decode(getRawName(), getProtocolCharset()); }
java
public String getName() throws URIException { char[] basename = getRawName(); return (basename == null) ? null : decode(getRawName(), getProtocolCharset()); }
[ "public", "String", "getName", "(", ")", "throws", "URIException", "{", "char", "[", "]", "basename", "=", "getRawName", "(", ")", ";", "return", "(", "basename", "==", "null", ")", "?", "null", ":", "decode", "(", "getRawName", "(", ")", ",", "getProt...
Get the basename of the path. @return the basename string @throws URIException incomplete trailing escape pattern or unsupported character encoding @see #decode
[ "Get", "the", "basename", "of", "the", "path", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3176-L3180
129,685
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getRawPathQuery
public char[] getRawPathQuery() { if (_path == null && _query == null) { return null; } StringBuffer buff = new StringBuffer(); if (_path != null) { buff.append(_path); } if (_query != null) { buff.append('?'); buff.append(...
java
public char[] getRawPathQuery() { if (_path == null && _query == null) { return null; } StringBuffer buff = new StringBuffer(); if (_path != null) { buff.append(_path); } if (_query != null) { buff.append('?'); buff.append(...
[ "public", "char", "[", "]", "getRawPathQuery", "(", ")", "{", "if", "(", "_path", "==", "null", "&&", "_query", "==", "null", ")", "{", "return", "null", ";", "}", "StringBuffer", "buff", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "_path",...
Get the raw-escaped path and query. @return the raw-escaped path and query
[ "Get", "the", "raw", "-", "escaped", "path", "and", "query", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3189-L3203
129,686
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getPathQuery
public String getPathQuery() throws URIException { char[] rawPathQuery = getRawPathQuery(); return (rawPathQuery == null) ? null : decode(rawPathQuery, getProtocolCharset()); }
java
public String getPathQuery() throws URIException { char[] rawPathQuery = getRawPathQuery(); return (rawPathQuery == null) ? null : decode(rawPathQuery, getProtocolCharset()); }
[ "public", "String", "getPathQuery", "(", ")", "throws", "URIException", "{", "char", "[", "]", "rawPathQuery", "=", "getRawPathQuery", "(", ")", ";", "return", "(", "rawPathQuery", "==", "null", ")", "?", "null", ":", "decode", "(", "rawPathQuery", ",", "g...
Get the path and query. @return the path and query string. @throws URIException incomplete trailing escape pattern or unsupported character encoding @see #decode
[ "Get", "the", "path", "and", "query", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3225-L3229
129,687
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setRawQuery
public void setRawQuery(char[] escapedQuery) throws URIException { if (escapedQuery == null || escapedQuery.length == 0) { _query = escapedQuery; setURI(); return; } // remove the fragment identifier escapedQuery = removeFragmentIdentifier(escapedQuery...
java
public void setRawQuery(char[] escapedQuery) throws URIException { if (escapedQuery == null || escapedQuery.length == 0) { _query = escapedQuery; setURI(); return; } // remove the fragment identifier escapedQuery = removeFragmentIdentifier(escapedQuery...
[ "public", "void", "setRawQuery", "(", "char", "[", "]", "escapedQuery", ")", "throws", "URIException", "{", "if", "(", "escapedQuery", "==", "null", "||", "escapedQuery", ".", "length", "==", "0", ")", "{", "_query", "=", "escapedQuery", ";", "setURI", "("...
Set the raw-escaped query. @param escapedQuery the raw-escaped query @throws URIException escaped query not valid
[ "Set", "the", "raw", "-", "escaped", "query", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3239-L3253
129,688
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setEscapedQuery
public void setEscapedQuery(String escapedQuery) throws URIException { if (escapedQuery == null) { _query = null; setURI(); return; } setRawQuery(escapedQuery.toCharArray()); }
java
public void setEscapedQuery(String escapedQuery) throws URIException { if (escapedQuery == null) { _query = null; setURI(); return; } setRawQuery(escapedQuery.toCharArray()); }
[ "public", "void", "setEscapedQuery", "(", "String", "escapedQuery", ")", "throws", "URIException", "{", "if", "(", "escapedQuery", "==", "null", ")", "{", "_query", "=", "null", ";", "setURI", "(", ")", ";", "return", ";", "}", "setRawQuery", "(", "escaped...
Set the escaped query string. @param escapedQuery the escaped query string @throws URIException escaped query not valid
[ "Set", "the", "escaped", "query", "string", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3262-L3269
129,689
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setRawFragment
public void setRawFragment(char[] escapedFragment) throws URIException { if (escapedFragment == null || escapedFragment.length == 0) { _fragment = escapedFragment; hash = 0; return; } if (!validate(escapedFragment, fragment)) { throw new URIExcepti...
java
public void setRawFragment(char[] escapedFragment) throws URIException { if (escapedFragment == null || escapedFragment.length == 0) { _fragment = escapedFragment; hash = 0; return; } if (!validate(escapedFragment, fragment)) { throw new URIExcepti...
[ "public", "void", "setRawFragment", "(", "char", "[", "]", "escapedFragment", ")", "throws", "URIException", "{", "if", "(", "escapedFragment", "==", "null", "||", "escapedFragment", ".", "length", "==", "0", ")", "{", "_fragment", "=", "escapedFragment", ";",...
Set the raw-escaped fragment. @param escapedFragment the raw-escaped fragment @throws URIException escaped fragment not valid
[ "Set", "the", "raw", "-", "escaped", "fragment", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3339-L3351
129,690
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setEscapedFragment
public void setEscapedFragment(String escapedFragment) throws URIException { if (escapedFragment == null) { _fragment = null; hash = 0; return; } setRawFragment(escapedFragment.toCharArray()); }
java
public void setEscapedFragment(String escapedFragment) throws URIException { if (escapedFragment == null) { _fragment = null; hash = 0; return; } setRawFragment(escapedFragment.toCharArray()); }
[ "public", "void", "setEscapedFragment", "(", "String", "escapedFragment", ")", "throws", "URIException", "{", "if", "(", "escapedFragment", "==", "null", ")", "{", "_fragment", "=", "null", ";", "hash", "=", "0", ";", "return", ";", "}", "setRawFragment", "(...
Set the escaped fragment string. @param escapedFragment the escaped fragment string @throws URIException escaped fragment not valid
[ "Set", "the", "escaped", "fragment", "string", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3360-L3367
129,691
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.setFragment
public void setFragment(String fragment) throws URIException { if (fragment == null || fragment.length() == 0) { _fragment = (fragment == null) ? null : fragment.toCharArray(); hash = 0; return; } _fragment = encode(fragment, allowed_fragment, getProtocolChars...
java
public void setFragment(String fragment) throws URIException { if (fragment == null || fragment.length() == 0) { _fragment = (fragment == null) ? null : fragment.toCharArray(); hash = 0; return; } _fragment = encode(fragment, allowed_fragment, getProtocolChars...
[ "public", "void", "setFragment", "(", "String", "fragment", ")", "throws", "URIException", "{", "if", "(", "fragment", "==", "null", "||", "fragment", ".", "length", "(", ")", "==", "0", ")", "{", "_fragment", "=", "(", "fragment", "==", "null", ")", "...
Set the fragment. @param fragment the fragment string. @throws URIException If an error occurs.
[ "Set", "the", "fragment", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3376-L3384
129,692
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.removeFragmentIdentifier
protected char[] removeFragmentIdentifier(char[] component) { if (component == null) { return null; } int lastIndex = new String(component).indexOf('#'); if (lastIndex != -1) { component = new String(component).substring(0, lastIndex).toCharAr...
java
protected char[] removeFragmentIdentifier(char[] component) { if (component == null) { return null; } int lastIndex = new String(component).indexOf('#'); if (lastIndex != -1) { component = new String(component).substring(0, lastIndex).toCharAr...
[ "protected", "char", "[", "]", "removeFragmentIdentifier", "(", "char", "[", "]", "component", ")", "{", "if", "(", "component", "==", "null", ")", "{", "return", "null", ";", "}", "int", "lastIndex", "=", "new", "String", "(", "component", ")", ".", "...
Remove the fragment identifier of the given component. @param component the component that a fragment may be included @return the component that the fragment identifier is removed
[ "Remove", "the", "fragment", "identifier", "of", "the", "given", "component", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3438-L3448
129,693
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.normalize
protected char[] normalize(char[] path) throws URIException { if (path == null) { return null; } String normalized = new String(path); // If the buffer begins with "./" or "../", the "." or ".." is removed. if (normalized.startsWith("./")) { normalized...
java
protected char[] normalize(char[] path) throws URIException { if (path == null) { return null; } String normalized = new String(path); // If the buffer begins with "./" or "../", the "." or ".." is removed. if (normalized.startsWith("./")) { normalized...
[ "protected", "char", "[", "]", "normalize", "(", "char", "[", "]", "path", ")", "throws", "URIException", "{", "if", "(", "path", "==", "null", ")", "{", "return", "null", ";", "}", "String", "normalized", "=", "new", "String", "(", "path", ")", ";",...
Normalize the given hier path part. <p>Algorithm taken from URI reference parser at http://www.apache.org/~fielding/uri/rev-2002/issues.html. @param path the path to normalize @return the normalized path @throws URIException no more higher path level to be normalized
[ "Normalize", "the", "given", "hier", "path", "part", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3461-L3532
129,694
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.compareTo
@Override public int compareTo(Object obj) throws ClassCastException { URI another = (URI) obj; if (!equals(_authority, another.getRawAuthority())) { return -1; } return toString().compareTo(another.toString()); }
java
@Override public int compareTo(Object obj) throws ClassCastException { URI another = (URI) obj; if (!equals(_authority, another.getRawAuthority())) { return -1; } return toString().compareTo(another.toString()); }
[ "@", "Override", "public", "int", "compareTo", "(", "Object", "obj", ")", "throws", "ClassCastException", "{", "URI", "another", "=", "(", "URI", ")", "obj", ";", "if", "(", "!", "equals", "(", "_authority", ",", "another", ".", "getRawAuthority", "(", "...
Compare this URI to another object. @param obj the object to be compared. @return 0, if it's same, -1, if failed, first being compared with in the authority component @throws ClassCastException not URI argument
[ "Compare", "this", "URI", "to", "another", "object", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3689-L3697
129,695
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getRawURIReference
public char[] getRawURIReference() { if (_fragment == null) { return _uri; } if (_uri == null) { return _fragment; } // if _uri != null && _fragment != null String uriReference = new String(_uri) + "#" + new String(_fragment); return uri...
java
public char[] getRawURIReference() { if (_fragment == null) { return _uri; } if (_uri == null) { return _fragment; } // if _uri != null && _fragment != null String uriReference = new String(_uri) + "#" + new String(_fragment); return uri...
[ "public", "char", "[", "]", "getRawURIReference", "(", ")", "{", "if", "(", "_fragment", "==", "null", ")", "{", "return", "_uri", ";", "}", "if", "(", "_uri", "==", "null", ")", "{", "return", "_fragment", ";", "}", "// if _uri != null && _fragment != nu...
Get the URI reference character sequence. @return the URI reference character sequence
[ "Get", "the", "URI", "reference", "character", "sequence", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3794-L3804
129,696
zaproxy/zaproxy
src/org/apache/commons/httpclient/URI.java
URI.getURIReference
public String getURIReference() throws URIException { char[] uriReference = getRawURIReference(); return (uriReference == null) ? null : decode(uriReference, getProtocolCharset()); }
java
public String getURIReference() throws URIException { char[] uriReference = getRawURIReference(); return (uriReference == null) ? null : decode(uriReference, getProtocolCharset()); }
[ "public", "String", "getURIReference", "(", ")", "throws", "URIException", "{", "char", "[", "]", "uriReference", "=", "getRawURIReference", "(", ")", ";", "return", "(", "uriReference", "==", "null", ")", "?", "null", ":", "decode", "(", "uriReference", ","...
Get the original URI reference string. @return the original URI reference string @throws URIException If {@link #decode} fails.
[ "Get", "the", "original", "URI", "reference", "string", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/apache/commons/httpclient/URI.java#L3824-L3828
129,697
zaproxy/zaproxy
src/org/parosproxy/paros/network/ConnectionParam.java
ConnectionParam.setProxyExcludedDomains
public void setProxyExcludedDomains(List<DomainMatcher> proxyExcludedDomains) { if (proxyExcludedDomains == null || proxyExcludedDomains.isEmpty()) { ((HierarchicalConfiguration) getConfig()).clearTree(ALL_PROXY_EXCLUDED_DOMAINS_KEY); this.proxyExcludedDomains = Collections.emptyLis...
java
public void setProxyExcludedDomains(List<DomainMatcher> proxyExcludedDomains) { if (proxyExcludedDomains == null || proxyExcludedDomains.isEmpty()) { ((HierarchicalConfiguration) getConfig()).clearTree(ALL_PROXY_EXCLUDED_DOMAINS_KEY); this.proxyExcludedDomains = Collections.emptyLis...
[ "public", "void", "setProxyExcludedDomains", "(", "List", "<", "DomainMatcher", ">", "proxyExcludedDomains", ")", "{", "if", "(", "proxyExcludedDomains", "==", "null", "||", "proxyExcludedDomains", ".", "isEmpty", "(", ")", ")", "{", "(", "(", "HierarchicalConfigu...
Sets the domains that will be excluded from the outgoing proxy. @param proxyExcludedDomains the domains that will be excluded. @since 2.3.0 @see #getProxyExcludedDomains() @see #getProxyExcludedDomainsEnabled()
[ "Sets", "the", "domains", "that", "will", "be", "excluded", "from", "the", "outgoing", "proxy", "." ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/parosproxy/paros/network/ConnectionParam.java#L587-L617
129,698
zaproxy/zaproxy
src/org/zaproxy/zap/view/StructuralNodeModifiersTableModel.java
StructuralNodeModifiersTableModel.addStructuralNodeModifier
public void addStructuralNodeModifier(StructuralNodeModifier snm){ this.snms.add(snm); this.fireTableRowsInserted(this.snms.size()-1, this.snms.size()-1); }
java
public void addStructuralNodeModifier(StructuralNodeModifier snm){ this.snms.add(snm); this.fireTableRowsInserted(this.snms.size()-1, this.snms.size()-1); }
[ "public", "void", "addStructuralNodeModifier", "(", "StructuralNodeModifier", "snm", ")", "{", "this", ".", "snms", ".", "add", "(", "snm", ")", ";", "this", ".", "fireTableRowsInserted", "(", "this", ".", "snms", ".", "size", "(", ")", "-", "1", ",", "t...
Adds a new structural node modifiers to this model @param snm the structural node modifier
[ "Adds", "a", "new", "structural", "node", "modifiers", "to", "this", "model" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/view/StructuralNodeModifiersTableModel.java#L141-L144
129,699
zaproxy/zaproxy
src/org/zaproxy/zap/extension/ascan/ScanProgressDialog.java
ScanProgressDialog.getJScrollPane
private JScrollPane getJScrollPane() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getMainPanel()); jScrollPane.setName("ScanProgressScrollPane"); jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR...
java
private JScrollPane getJScrollPane() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getMainPanel()); jScrollPane.setName("ScanProgressScrollPane"); jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR...
[ "private", "JScrollPane", "getJScrollPane", "(", ")", "{", "if", "(", "jScrollPane", "==", "null", ")", "{", "jScrollPane", "=", "new", "JScrollPane", "(", ")", ";", "jScrollPane", ".", "setViewportView", "(", "getMainPanel", "(", ")", ")", ";", "jScrollPane...
Get the dialog scroll panel @return the panel
[ "Get", "the", "dialog", "scroll", "panel" ]
0cbe5121f2ae1ecca222513d182759210c569bec
https://github.com/zaproxy/zaproxy/blob/0cbe5121f2ae1ecca222513d182759210c569bec/src/org/zaproxy/zap/extension/ascan/ScanProgressDialog.java#L228-L238