Package org.parosproxy.paros.control

Examples of org.parosproxy.paros.control.Control


  private void runCommandLine() {
      int rc = 0;
      String help = "";
     
      Control.initSingletonWithoutView();
      Control control = Control.getSingleton();
     
      // no view initialization

      try {
          control.getExtensionLoader().hookCommandLineListener(cmdLine);
          if (cmdLine.isEnabled(CommandLine.HELP) || cmdLine.isEnabled(CommandLine.HELP2)) {
              help = cmdLine.getHelp();
              System.out.println(help);
          } else {
         
              control.runCommandLineNewSession(cmdLine.getArgument(CommandLine.NEW_SESSION));
       
              try {
                  Thread.sleep(1000);
              } catch (InterruptedException e) {}
          }
        rc = 0;
      } catch (Exception e) {
          log.error(e.getMessage());
          System.out.println(e.getMessage());
          rc = 1;
      } finally {
            control.shutdown(false);
          log.info(Constant.PROGRAM_TITLE + " terminated.");
      }
      System.exit(rc);
  }
View Full Code Here


 
 
  private void runGUI() throws ClassNotFoundException, Exception {

      Control.initSingletonWithView();
      Control control = Control.getSingleton();
      View view = View.getSingleton();
      view.postInit();
      view.getMainFrame().setExtendedState(Frame.MAXIMIZED_BOTH);   
      view.getMainFrame().setVisible(true);
      view.setStatus("");

      control.getMenuFileControl().newSession(false);

  }
View Full Code Here

    for (Entry<Integer, WebSocketProxy> wsEntry : wsProxies.entrySet()) {
      WebSocketProxy wsProxy = wsEntry.getValue();
      wsProxy.shutdown();
    }
   
    Control control = Control.getSingleton();
    ExtensionLoader extLoader = control.getExtensionLoader();
   
    // clear up Session Properties
    getView().getSessionDialog().removeParamPanel(sessionExcludePanel);
   
    // clear up Breakpoints
View Full Code Here

  private void runCommandLine() {
    int rc = 0;
    String help = "";

    Control.initSingletonWithoutView();
    Control control = Control.getSingleton();

    // no view initialization

    try {
      control.getExtensionLoader().hookCommandLineListener(cmdLine);
      if (cmdLine.isEnabled(CommandLine.HELP) || cmdLine.isEnabled(CommandLine.HELP2)) {
        help = cmdLine.getHelp();
        System.out.println(help);
      } else {

        control.runCommandLineNewSession(cmdLine.getArgument(CommandLine.NEW_SESSION));

        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
        }
      }
      rc = 0;
    } catch (Exception e) {
      log.error(e.getMessage());
      System.out.println(e.getMessage());
      rc = 1;
    } finally {
      control.shutdown(false);
      log.info(Constant.PROGRAM_TITLE + " terminated.");
    }
    System.exit(rc);
  }
View Full Code Here

  }

  private void runGUI() throws ClassNotFoundException, Exception {

    Control.initSingletonWithView();
    Control control = Control.getSingleton();
    View view = View.getSingleton();
    view.postInit();
    view.getMainFrame().setExtendedState(Frame.MAXIMIZED_BOTH);
    view.getMainFrame().setVisible(true);
    view.setStatus("");

    control.getMenuFileControl().newSession(false);

  }
View Full Code Here

TOP

Related Classes of org.parosproxy.paros.control.Control

Copyright © 2018 www.massapicom. 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.