Package org.zaproxy.zap.extension.search
Class SearchParam
- java.lang.Object
-
- org.parosproxy.paros.common.AbstractParam
-
- org.zaproxy.zap.extension.search.SearchParam
-
- All Implemented Interfaces:
java.lang.Cloneable
public class SearchParam extends AbstractParam
Manages the search configurations saved in the configuration file.It allows to change, programmatically, the following search options:
- Maximum search results in GUI - allows to set the maximum number of results that should be shown in GUI results panel.
- See Also:
getMaximumSearchResultsGUI()
-
-
Constructor Summary
Constructors Constructor Description SearchParam()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaximumSearchResultsGUI()
Returns the number of maximum results that should be shown in the results panel.protected void
parse()
Parses the search options.void
setMaximumSearchResultsGUI(int maximumSearchResultsGUI)
Sets whether the number of maximum results that should be shown in the results panel.-
Methods inherited from class org.parosproxy.paros.common.AbstractParam
clone, getBoolean, getConfig, getInt, getInteger, getString, load, load, load, logConversionException, reset
-
-
-
-
Method Detail
-
parse
protected void parse()
Parses the search options.The following search options are parsed:
- Maximum search results in GUI - allows to set the maximum number of results that should be shown in GUI results panel.
- Specified by:
parse
in classAbstractParam
- See Also:
getMaximumSearchResultsGUI()
-
setMaximumSearchResultsGUI
public void setMaximumSearchResultsGUI(int maximumSearchResultsGUI)
Sets whether the number of maximum results that should be shown in the results panel.- Parameters:
maximumSearchResultsGUI
- the number of maximum results that should be shown in the results panel- See Also:
getMaximumSearchResultsGUI()
-
getMaximumSearchResultsGUI
public int getMaximumSearchResultsGUI()
Returns the number of maximum results that should be shown in the results panel.- Returns:
- the number of maximum results that should be shown in the results panel
- See Also:
setMaximumSearchResultsGUI(int)
-
-