Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client: Initial Client Spider tab #6018

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class ClientOptions extends VersionedAbstractParam {
private static final String MAX_DEPTH_KEY = CLIENT_BASE_KEY + ".maxDepth";
private static final String MAX_DURATION_KEY = CLIENT_BASE_KEY + ".maxDuration";
private static final String MAX_CHILDREN_KEY = CLIENT_BASE_KEY + ".maxChildren";
private static final String MAX_SCANS_IN_UI_KEY = CLIENT_BASE_KEY + ".maxScansInUI";

private static final String DEFAULT_BROWSER_ID = Browser.FIREFOX_HEADLESS.getId();

Expand All @@ -62,6 +63,7 @@ public class ClientOptions extends VersionedAbstractParam {
private int maxChildren;
private int maxDepth = 5;
private int maxDuration;
private int maxScansInUi = 5;

@Override
public ClientOptions clone() {
Expand All @@ -79,6 +81,7 @@ protected void parseImpl() {
this.maxChildren = getInt(MAX_CHILDREN_KEY, 0);
this.maxDepth = getInt(MAX_DEPTH_KEY, 5);
this.maxDuration = getInt(MAX_DURATION_KEY, 0);
this.maxScansInUi = getInt(MAX_SCANS_IN_UI_KEY, 5);

try {
pscanRulesDisabled =
Expand Down Expand Up @@ -216,4 +219,13 @@ public void setMaxDuration(int maxDuration) {
this.maxDuration = maxDuration;
getConfig().setProperty(MAX_DURATION_KEY, maxDuration);
}

public int getMaxScansInUi() {
return this.maxScansInUi;
}

public void setMaxScansInUi(int maxScansInUi) {
this.maxScansInUi = maxScansInUi;
getConfig().setProperty(MAX_SCANS_IN_UI_KEY, maxScansInUi);
}
}
Loading
Loading