Examples of IHttpProxyService


Examples of com.subgraph.vega.api.http.proxy.IHttpProxyService

  private void updateProxyListenerAddresses() {
    final ArrayList<IHttpProxyListenerConfig> listenerList = new ArrayList<IHttpProxyListenerConfig>();
    final String prefListeners = getPreferenceStore().getString(IPreferenceConstants.P_PROXY_LISTENERS);
    ProxyListenerPreferencePage.parsePreferencesString(listenerList, prefListeners);
    final IHttpProxyService proxyService = getProxyService();
    proxyService.setListenerConfigs((IHttpProxyListenerConfig[]) listenerList.toArray(new IHttpProxyListenerConfig[0]));
  }
View Full Code Here

Examples of com.subgraph.vega.api.http.proxy.IHttpProxyService

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
       
    boolean oldValue = HandlerUtil.toggleCommandState(event.getCommand());
   
    final IHttpProxyService proxyService = Activator.getDefault().getProxyService();
    IScannerConfig scannerConfig = proxyService.getProxyScanConfig();
    if(scannerConfig != null) {
      configureScanner(scannerConfig);
    }
    proxyService.setProxyScanEnabled(!oldValue);
    return null;
  }
View Full Code Here

Examples of com.subgraph.vega.api.http.proxy.IHttpProxyService

public class ProxyPassthrough extends AbstractHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {

    IHttpProxyService proxyService = Activator.getDefault().getProxyService();
    if(proxyService == null) {
      Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
      ErrorDialog.displayError(shell, "Proxy service is null");
      return null;
    }

    final boolean oldValue = HandlerUtil.toggleCommandState(event.getCommand());
    proxyService.setPassthrough(!oldValue);
   
    return null;
  }
View Full Code Here

Examples of com.subgraph.vega.api.http.proxy.IHttpProxyService

      dialog.close();
      dialog = null;
      return null;
    }
   
    final IHttpProxyService proxy = Activator.getDefault().getProxyService();
    List<IScannerModule> allModules = new ArrayList<IScannerModule>();
    allModules.addAll(proxy.getResponseProcessingModules());
    allModules.addAll(proxy.getProxyScanModules());
   
    dialog = ConfigDialogCreator.createDialog(event, new ConfigureProxyModulesContent(allModules));
    dialog.setBlockOnOpen(true);
    dialog.open();
    return null;
View Full Code Here

Examples of com.subgraph.vega.api.http.proxy.IHttpProxyService

abstract class AbstractProxyCommandHandler extends AbstractHandler {
 
  @Override
  public Object execute(ExecutionEvent event) {
    IHttpProxyService proxyService = Activator.getDefault().getProxyService();
    if(proxyService == null) {
      Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
      ErrorDialog.displayError(shell, "Proxy service is null");
      return null;
    }
View Full Code Here

Examples of com.subgraph.vega.api.http.proxy.IHttpProxyService

    };
    model.addWorkspaceListener(workspaceListener);
  }

  private void handleWorkspaceCloseOrReset() {
    final IHttpProxyService proxyService = Activator.getDefault().getProxyService();
    resetToggleCommand("com.subgraph.vega.commands.proxyScan", false);
    resetToggleCommand("com.subgraph.vega.commands.proxyPassthrough", proxyService.isPassthrough());
  }
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.