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;
    SpiderParam param = (SpiderParam) options.getParamSet(SpiderParam.class);
    param.setMaxDepth(getSliderMaxDepth().getValue());
    param.setThread(getSliderThreads().getValue());
    param.setSkipURL(getTxtSkipURL().getText());
    param.setScope(getTxtScope().getText());
    param.setPostForm(getChkPostForm().isSelected());
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

  }
    /* (non-Javadoc)
     * @see com.proofsecure.paros.view.AbstractParamPanel#initParam(java.lang.Object)
     */
    public void initParam(Object obj) {
      OptionsParam optionsParam = (OptionsParam) obj;
      ConnectionParam connectionParam = optionsParam.getConnectionParam();
      getAuthModel().setListAuth(connectionParam.getListAuth());
    }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    /* (non-Javadoc)
     * @see com.proofsecure.paros.view.AbstractParamPanel#saveParam(java.lang.Object)
     */
    public void saveParam(Object obj) throws Exception {
      OptionsParam optionsParam = (OptionsParam) obj;
      ConnectionParam connectionParam = optionsParam.getConnectionParam();
      connectionParam.setListAuth(getAuthModel().getListAuth());
    }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

    return txtCustomUserAgent;
  }
 
 
  public void initParam(Object obj) {
    OptionsParam options = (OptionsParam) obj;
    getTxtCustomUserAgent().setText(options.getHttpHeaderParam().getCustomUserAgent());
  }
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;
    String userAgent = getTxtCustomUserAgent().getText();
    options.getHttpHeaderParam().setCustomUserAgent(userAgent);
   
    // Reset the user-agent
    HttpSender.setUserAgent(userAgent);
  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

      panelSpider.add(jLabel2, gridBagConstraints6);
    }
    return panelSpider;
  }
  public void initParam(Object obj) {
      OptionsParam options = (OptionsParam) obj;
      ScannerParam param = (ScannerParam) options.getParamSet(ScannerParam.class);
      getSliderHostPerScan().setValue(param.getHostPerScan());
      getSliderThreadsPerHost().setValue(param.getThreadPerHost());
  }
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;
      ScannerParam param = (ScannerParam) options.getParamSet(ScannerParam.class);
      param.setHostPerScan(getSliderHostPerScan().getValue());
      param.setThreadPerHost(getSliderThreadsPerHost().getValue());
  }
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

        this.add(getPanelProxyChain(), getPanelProxyChain().getName());
  }
 
  public void initParam(Object obj) {
     
      OptionsParam optionsParam = (OptionsParam) obj;
      ConnectionParam connectionParam = optionsParam.getConnectionParam();
     
      // set Proxy Chain parameters
      if (connectionParam.getProxyChainName().equals("")) {
          chkUseProxyChain.setSelected(false);
          setProxyChainEnabled(false);
View Full Code Here

Examples of org.parosproxy.paros.model.OptionsParam

     
  }

  public void saveParam(Object obj) throws Exception {
   
      OptionsParam optionsParam = (OptionsParam) obj;
      ConnectionParam connectionParam = optionsParam.getConnectionParam();
      int proxyChainPort = 8080;

      if (chkUseProxyChain.isSelected()) {
            try {
                proxyChainPort = Integer.parseInt(txtProxyChainPort.getText());
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.