Package org.zaproxy.zap.extension.brk

Examples of org.zaproxy.zap.extension.brk.ExtensionBreak


      // setup Session Properties
      sessionExcludePanel =  new SessionExcludeFromWebSocket(this);
      getView().getSessionDialog().addParamPanel(new String[]{}, sessionExcludePanel, false);
     
      // setup Breakpoints
      ExtensionBreak extBreak = (ExtensionBreak) extLoader.getExtension(ExtensionBreak.NAME);
      if (extBreak != null) {
        // setup custom breakpoint handler
        BreakpointMessageHandler wsBrkMessageHandler = new WebSocketBreakpointMessageHandler(extBreak.getBreakPanel(), config);
        wsBrkMessageHandler.setEnabledBreakpoints(extBreak.getBreakpointsEnabledList());
       
        // listen on new messages such that breakpoints can apply
        addAllChannelObserver(new WebSocketProxyListenerBreak(this, wsBrkMessageHandler));

        // pop up to add the breakpoint
        hookMenu.addPopupMenuItem(new PopupMenuAddBreakWebSocket(extBreak));
        extBreak.addBreakpointsUiManager(getBrkManager());
      }
     
      // setup replace payload filter
      wsFilterListener = new WebSocketFilterListener();
      addAllChannelObserver(wsFilterListener);
View Full Code Here


   
    // clear up Session Properties
    getView().getSessionDialog().removeParamPanel(sessionExcludePanel);
   
    // clear up Breakpoints
    ExtensionBreak extBreak = (ExtensionBreak) extLoader.getExtension(ExtensionBreak.NAME);
    if (extBreak != null) {
      extBreak.removeBreakpointsUiManager(getBrkManager());
    }
   
    // clear up fuzzable extension
    ExtensionFuzz extFuzz = (ExtensionFuzz) extLoader.getExtension(ExtensionFuzz.NAME);
    if (extFuzz != null) {
View Full Code Here

    return panel;
  }

  private WebSocketBreakpointsUiManagerInterface getBrkManager() {
    if (brkManager == null) {
      ExtensionBreak extBreak = (ExtensionBreak) Control.getSingleton().getExtensionLoader().getExtension(ExtensionBreak.NAME);
      if (extBreak != null) {
        brkManager = new WebSocketBreakpointsUiManagerInterface(extBreak);
      }
    }
    return brkManager;
View Full Code Here

TOP

Related Classes of org.zaproxy.zap.extension.brk.ExtensionBreak

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.