use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsSpiderPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
OptionsParam options = (OptionsParam) obj;
SpiderParam param = options.getParamSet(SpiderParam.class);
param.setMaxDepth(getSliderMaxDepth().getValue());
param.setThreadCount(getSliderThreads().getValue());
param.setMaxDuration(getDurationNumberSpinner().getValue());
param.setMaxChildren(getMaxChildrenNumberSpinner().getValue());
param.setDomainsAlwaysInScope(getDomainsAlwaysInScopeTableModel().getDomainsAlwaysInScope());
param.setConfirmRemoveDomainAlwaysInScope(getDomainsAlwaysInScopePanel().isRemoveWithoutConfirmation());
param.setSendRefererHeader(getChkSendRefererHeader().isSelected());
param.setProcessForm(getChkProcessForm().isSelected());
param.setPostForm(getChkPostForm().isSelected());
param.setParseComments(getChkParseComments().isSelected());
param.setParseRobotsTxt(getChkParseRobotsTxt().isSelected());
param.setParseSitemapXml(getChkParseSitemapXml().isSelected());
param.setParseSVNEntries(getChkParseSVNEntries().isSelected());
param.setParseGit(getChkParseGit().isSelected());
param.setHandleParameters((HandleParametersOption) getComboHandleParameters().getSelectedItem());
param.setHandleODataParametersVisited(getHandleODataSpecificParameters().isSelected());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsGlobalExcludeURLPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
OptionsParam optionsParam = (OptionsParam) obj;
GlobalExcludeURLParam globalExcludeURLParam = optionsParam.getGlobalExcludeURLParam();
globalExcludeURLParam.setTokens(getGlobalExcludeURLModel().getElements());
globalExcludeURLParam.setConfirmRemoveToken(!tokensOptionsPanel.isRemoveWithoutConfirmation());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsPassiveScan method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
OptionsParam optionsParam = (OptionsParam) obj;
PassiveScanParam passiveScanParam = optionsParam.getParamSet(PassiveScanParam.class);
passiveScanParam.setAutoTagScanners(getTableModel().getElements());
passiveScanParam.setConfirmRemoveAutoTagScanner(!scannersOptionsPanel.isRemoveWithoutConfirmation());
passiveScanners.setAutoTagScanners(passiveScanParam.getAutoTagScanners());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsHttpSessionsPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
OptionsParam optionsParam = (OptionsParam) obj;
HttpSessionsParam sessionParam = optionsParam.getParamSet(HttpSessionsParam.class);
sessionParam.setDefaultTokens(getDefaultTokensModel().getTokens());
sessionParam.setEnabledProxyOnly(getChkProxyOnly().isSelected());
sessionParam.setConfirmRemoveDefaultToken(!tokensOptionsPanel.isRemoveWithoutConfirmation());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsStatsPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
OptionsParam optionsParam = (OptionsParam) obj;
StatsParam statsParam = optionsParam.getParamSet(StatsParam.class);
statsParam.setInMemoryEnabled(getInMemoryStatsEnabledField().isSelected());
if (getStatsdStatsEnabledField().isSelected()) {
statsParam.setStatsdHost(getStatsdHostField().getText());
statsParam.setStatsdPort(getStatsdPortField().getValue());
statsParam.setStatsdPrefix(getStatsdPrefixField().getText());
} else {
statsParam.setStatsdHost("");
}
}
Aggregations