Search in sources :

Example 1 with OptionsParam

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());
}
Also used : OptionsParam(org.parosproxy.paros.model.OptionsParam)

Example 2 with OptionsParam

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());
}
Also used : OptionsParam(org.parosproxy.paros.model.OptionsParam)

Example 3 with OptionsParam

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());
}
Also used : OptionsParam(org.parosproxy.paros.model.OptionsParam)

Example 4 with OptionsParam

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);
}
Also used : OptionsParam(org.parosproxy.paros.model.OptionsParam)

Example 5 with OptionsParam

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());
}
Also used : OptionsParam(org.parosproxy.paros.model.OptionsParam)

Aggregations

OptionsParam (org.parosproxy.paros.model.OptionsParam)56 ScannerParam (org.parosproxy.paros.core.scanner.ScannerParam)4 ConnectionParam (org.parosproxy.paros.network.ConnectionParam)4 File (java.io.File)3 ViewLocale (org.zaproxy.zap.view.ViewLocale)3 ProxyParam (org.parosproxy.paros.core.proxy.ProxyParam)2 Extension (org.parosproxy.paros.extension.Extension)2 SpiderParam (org.zaproxy.zap.spider.SpiderParam)2 HeadlessException (java.awt.HeadlessException)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 MissingResourceException (java.util.MissingResourceException)1 JButton (javax.swing.JButton)1 UnsupportedLookAndFeelException (javax.swing.UnsupportedLookAndFeelException)1 ConfigurationException (org.apache.commons.configuration.ConfigurationException)1 JXErrorPane (org.jdesktop.swingx.JXErrorPane)1 ErrorInfo (org.jdesktop.swingx.error.ErrorInfo)1