Skip to content

Commit

Permalink
Merge pull request #6018 from psiinon/client/gui
Browse files Browse the repository at this point in the history
Client: Initial Client Spider tab
  • Loading branch information
kingthorin authored Dec 19, 2024
2 parents 707f23e + d0ae678 commit 1e1a421
Show file tree
Hide file tree
Showing 12 changed files with 990 additions and 132 deletions.
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

0 comments on commit 1e1a421

Please sign in to comment.