Examples of OptionsParam


Examples of org.parosproxy.paros.model.OptionsParam

  public void validateParam(Object obj) {
      // no validation needed
  }
 
  public void saveParam (Object obj) throws Exception {
      OptionsParam options = (OptionsParam) obj;
      PortScanParam param = (PortScanParam) options.getParamSet(PortScanParam.class);
      if (param == null) {
        param = new PortScanParam();
        options.addParamSet(param);
      }
      param.setMaxPort(getSliderMaxPort().getValue());
       param.setThreadPerScan(getSliderThreadsPerScan().getValue());
  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    return chkHttpResponseHide404NotFound;
  }
 
 
  public void initParam(Object obj) {
    OptionsParam options = (OptionsParam) obj;
    getChkProcessImages().setSelected(options.getViewParam().getProcessImages() > 0);
    getChkShowSplash().setSelected(options.getViewParam().getShowSplash() > 0);
    getChkHttpResponseToSitemap().setSelected(options.getViewParam().getHttpResponseToSitemap() > 0);
    getChkHttpResponseToSitemapNo200Ok().setSelected(options.getViewParam().getHttpResponseToSitemapNo200Ok() > 0);
    getChkHttpResponseHide404NotFound().setSelected(options.getViewParam().getHttpResponseHide404NotFound() > 0);
  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

  public void validateParam(Object obj) {
    // no validation needed
  }

  public void saveParam(Object obj) throws Exception {
    OptionsParam options = (OptionsParam) obj;
    options.getViewParam().setProcessImages((getChkProcessImages().isSelected()) ? 1 : 0);
    options.getViewParam().setShowSplash((getChkShowSplash().isSelected()) ? 1 : 0);
    options.getViewParam().setHttpResponseToSitemap((getChkHttpResponseToSitemap().isSelected()) ? 1 : 0);
    options.getViewParam().setHttpResponseToSitemapNo200Ok((getChkHttpResponseToSitemapNo200Ok().isSelected()) ? 1 : 0);
    options.getViewParam().setHttpResponseHide404NotFound((getChkHttpResponseHide404NotFound().isSelected()) ? 1 : 0);
  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    getPanelReverseProxy().setVisible(Constant.isSP());

  }

  public void initParam(Object obj) {
    OptionsParam optionsParam = (OptionsParam) obj;
    ProxyParam proxyParam = optionsParam.getProxyParam();

    // Set local proxy parameters
    txtProxyIp.setText(proxyParam.getProxyIp());
    txtProxyPort.setText(Integer.toString(proxyParam.getProxyPort()));
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    }

  }

  public void saveParam(Object obj) throws Exception {
    OptionsParam optionsParam = (OptionsParam) obj;
    ProxyParam proxyParam = optionsParam.getProxyParam();
   
    int proxyPort = 0;
    int reverseProxyHttpPort = 0;
    int reverseProxyHttpsPort = 0;
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

  private OptionsCertificatePanel getContentPane() {
    return this;
  }

  public void initParam(Object obj) {
    OptionsParam options = (OptionsParam) obj;
    useClientCertificateCheckBox.setSelected(options.getCertificateParam().isUseClientCert());
    //getBtnLocation().setEnabled(getChkUseClientCertificate().isSelected());
    //getTxtLocation().setText(options.getCertificateParam().getClientCertLocation());

  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

  public void validateParam(Object obj) {
    // no validation needed
  }

  public void saveParam (Object obj) throws Exception {
    OptionsParam options = (OptionsParam) obj;
    OptionsParamCertificate certParam = options.getCertificateParam();
    certParam.setEnableCertificate(useClientCertificateCheckBox.isSelected());

  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    /* (non-Javadoc)
     * @see org.parosproxy.paros.view.AbstractParamPanel#initParam(java.lang.Object)
     */
    public void initParam(Object obj) {
       
      OptionsParam optionsParam = (OptionsParam) obj;
      TrapParam trapParam = (TrapParam) optionsParam.getParamSet(TrapParam.class);
     
      if (trapParam.getInclusiveFilter().equals("")) {
          getTrapFilterPanel().getChkEnableInclusiveFilter().setSelected(false);
          getTrapFilterPanel().setInclusiveFilter(false);
      } else {
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    /* (non-Javadoc)
     * @see org.parosproxy.paros.view.AbstractParamPanel#saveParam(java.lang.Object)
     */
    public void saveParam(Object obj) throws Exception {
       
        OptionsParam optionsParam = (OptionsParam) obj;
        TrapParam trapParam = (TrapParam) optionsParam.getParamSet(TrapParam.class);
     
            try {
                String s = getTrapFilterPanel().getTxtInclusiveFilter().getText();
                trapParam.setInclusiveFilter(s);
            } catch (Exception e) {
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    }
    return panelSpider;
  }

  public void initParam(Object obj) {
    OptionsParam options = (OptionsParam) obj;

    SpiderParam param = (SpiderParam) options.getParamSet(SpiderParam.class);
    getSliderMaxDepth().setValue(param.getMaxDepth());
    getSliderThreads().setValue(param.getThread());
    getTxtSkipURL().setText(param.getSkipURL());
    getTxtScope().setText(param.getScope());
    getChkPostForm().setSelected(param.isPostForm());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.