use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsAlertPanel method initParam.
@Override
public void initParam(Object obj) {
final OptionsParam options = (OptionsParam) obj;
final AlertParam param = options.getParamSet(AlertParam.class);
getMaxInstances().setValue(Integer.valueOf(param.getMaximumInstances()));
getMergeRelatedIssues().setSelected(param.isMergeRelatedIssues());
getMaxInstances().setEditable(param.isMergeRelatedIssues());
getOverridesFilename().setText(param.getOverridesFilename());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsAlertPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
final OptionsParam options = (OptionsParam) obj;
final AlertParam param = options.getParamSet(AlertParam.class);
param.setMaximumInstances(getMaxInstances().getValue().intValue());
param.setMergeRelatedIssues(getMergeRelatedIssues().isSelected());
param.setOverridesFilename(getOverridesFilename().getText());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class OptionsApiPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
OptionsParam options = (OptionsParam) obj;
options.getApiParam().setEnabled(getChkEnabled().isSelected());
options.getApiParam().setUiEnabled(getChkUiEnabled().isSelected());
options.getApiParam().setSecureOnly(getChkSecureOnly().isSelected());
options.getApiParam().setDisableKey(getDisableKey().isSelected());
options.getApiParam().setIncErrorDetails(getIncErrorDetails().isSelected());
options.getApiParam().setAutofillKey(getAutofillKey().isSelected());
options.getApiParam().setEnableJSONP(getEnableJSONP().isSelected());
options.getApiParam().setReportPermErrors(getReportPermErrors().isSelected());
options.getApiParam().setNoKeyForSafeOps(getNoKeyForSafeOps().isSelected());
if (!getDisableKey().isSelected()) {
// Dont loose the old value on disabling
options.getApiParam().setKey(getKeyField().getText());
}
//options.getApiParam().setPostActions(getChkPostActions().isEnabled());
options.getApiParam().setPermittedAddresses(getPermittedAddressesTableModel().getElements());
options.getApiParam().setConfirmRemovePermittedAddress(!getProxyPermittedAddressesPanel().isRemoveWithoutConfirmation());
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class DynamicSSLPanel method saveParam.
@Override
public void saveParam(Object obj) throws Exception {
final OptionsParam options = (OptionsParam) obj;
final DynSSLParam param = options.getParamSet(DynSSLParam.class);
param.setRootca(rootca);
extension.setRootCa(rootca);
}
use of org.parosproxy.paros.model.OptionsParam in project zaproxy by zaproxy.
the class EncodeDecodeParamPanel method initParam.
@Override
public void initParam(Object obj) {
final OptionsParam options = (OptionsParam) obj;
final EncodeDecodeParam param = options.getParamSet(EncodeDecodeParam.class);
comboBoxBase64Charset.setSelectedItem(param.getBase64Charset());
checkBoxBase64DoBreakLines.setSelected(param.isBase64DoBreakLines());
}
Aggregations