@Override
 public void hook(ExtensionHook extensionHook) {
   super.hook(extensionHook);
   if (getView() != null) {
     HttpPanelManager panelManager = HttpPanelManager.getInstance();
     panelManager.addRequestComponentFactory(new RequestAllComponentFactory());
     panelManager.addResponseComponentFactory(new ResponseAllComponentFactory());
   }
 }
  @Override
  public void unload() {
    if (getView() != null) {
      HttpPanelManager panelManager = HttpPanelManager.getInstance();
      panelManager.removeRequestComponentFactory(RequestAllComponentFactory.NAME);
      panelManager.removeRequestComponents(RequestAllComponent.NAME);

      panelManager.removeResponseComponentFactory(ResponseAllComponentFactory.NAME);
      panelManager.removeResponseComponents(ResponseAllComponent.NAME);
    }
  }
Esempio n. 3
0
  public HttpPanelRequest(boolean isEditable, String configurationKey) {
    super(isEditable, configurationKey + REQUEST_KEY);

    HttpPanelManager.getInstance().addRequestPanel(this);
    this.setHideable(false);
  }